Skip to content

Commit

Permalink
Add unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
kdysput committed Sep 24, 2024
1 parent 8fe3b7e commit 56a4a10
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backtracepython/attributes/report_data_builder.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import unicodedata


class ReportDataBuilder:
primitive_types = (int, float, str, bool, bytes, type(None))
primitive_types = (int, float, str, bool, bytes, type(None), unicode)

@staticmethod
def get(provider_attributes):
Expand All @@ -14,6 +11,7 @@ def get(provider_attributes):
if isinstance(value, ReportDataBuilder.primitive_types):
attributes[key] = value
else:
print("Adding {} as an annotation. Type {}".format(key, type(value)))
annotations[key] = value

# Return both dictionaries
Expand Down

0 comments on commit 56a4a10

Please sign in to comment.