From 401709f665a3ba11649b74106e10b68c8671df17 Mon Sep 17 00:00:00 2001 From: Jim Pivarski Date: Wed, 30 Jan 2019 12:40:00 -0600 Subject: [PATCH] fixed https://github.com/scikit-hep/uproot/pull/183#issuecomment-459057555 --- uproot_methods/convert.py | 2 +- uproot_methods/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uproot_methods/convert.py b/uproot_methods/convert.py index f0a605b..cc725b7 100644 --- a/uproot_methods/convert.py +++ b/uproot_methods/convert.py @@ -49,7 +49,7 @@ def types(cls, obj): for y in types(x, obj): yield y - if any(x == ("builtins", "bytes") or x == ("builtins", "str") for x in types(obj.__class__, obj)): + if any(x == ("builtins", "bytes") or x == ("builtins", "str") or x == ("__builtin__", "str") or x == ("__builtin__", "unicode") for x in types(obj.__class__, obj)): return (None, None, "uproot.write.objects.TObjString", "TObjString") elif isinstance(obj, tuple) and any(x[:2] == ("numpy", "ndarray") for x in types(obj[0].__class__, obj[0])) and any(x[:2] == ("numpy", "ndarray") for x in types(obj[1].__class__, obj[1])) and len(obj[0]) + 1 == len(obj[1]): diff --git a/uproot_methods/version.py b/uproot_methods/version.py index 61e1d1e..bf2b282 100644 --- a/uproot_methods/version.py +++ b/uproot_methods/version.py @@ -30,7 +30,7 @@ import re -__version__ = "0.4.0" +__version__ = "0.4.1" version = __version__ version_info = tuple(re.split(r"[-\.]", __version__))