diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/python-dateutil/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/python-dateutil/files')
-rw-r--r-- | dev-python/python-dateutil/files/python-dateutil-2.4.2-timelex.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-python/python-dateutil/files/python-dateutil-2.4.2-timelex.patch b/dev-python/python-dateutil/files/python-dateutil-2.4.2-timelex.patch new file mode 100644 index 000000000000..bccec4a56ddc --- /dev/null +++ b/dev-python/python-dateutil/files/python-dateutil-2.4.2-timelex.patch @@ -0,0 +1,13 @@ +diff --git dateutil/parser.py~ dateutil/parser.py +index 8b6c2d28b8..75453ef49e 100644 +--- dateutil/parser.py~ ++++ dateutil/parser.py +@@ -32,7 +32,7 @@ __all__ = ["parse", "parserinfo"] + class _timelex(object): + + def __init__(self, instream): +- if isinstance(instream, text_type): ++ if not hasattr(instream, 'read'): + instream = StringIO(instream) + self.instream = instream + self.wordchars = ('abcdfeghijklmnopqrstuvwxyz' |