jlec 15/05/15 10:40:18 Added: python-dateutil-2.4.2-timelex.patch Log: Import patch from fedora (Portage version: 2.2.19/cvs/Linux x86_64, signed Manifest commit with key E9402A79B03529A2!)
Revision Changes Path 1.1 dev-python/python-dateutil/files/python-dateutil-2.4.2-timelex.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-dateutil/files/python-dateutil-2.4.2-timelex.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/python-dateutil/files/python-dateutil-2.4.2-timelex.patch?rev=1.1&content-type=text/plain Index: python-dateutil-2.4.2-timelex.patch =================================================================== 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'
