Skip to content

Commit 9804862

Browse files
committed
Removed python3 incompatible types.BooleanType
1 parent d64d767 commit 9804862

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

report_builder/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import re
2424
from decimal import Decimal
2525
from numbers import Number
26-
from types import BooleanType
2726
import copy
2827
from dateutil import parser
2928

@@ -403,7 +402,7 @@ def append_display_total(display_totals, display_field, display_field_key):
403402
def increment_total(display_field_key, display_totals, val):
404403
if display_totals.has_key(display_field_key):
405404
# Booleans are Numbers - blah
406-
if isinstance(val, Number) and not isinstance(val, BooleanType):
405+
if isinstance(val, Number) and not isinstance(val, bool):
407406
# do decimal math for all numbers
408407
display_totals[display_field_key]['val'] += Decimal(str(val))
409408
else:

0 commit comments

Comments
 (0)