diff options
Diffstat (limited to 'dev-python/lxml/files/gtk-threading-filename-guessing.patch')
-rw-r--r-- | dev-python/lxml/files/gtk-threading-filename-guessing.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/dev-python/lxml/files/gtk-threading-filename-guessing.patch b/dev-python/lxml/files/gtk-threading-filename-guessing.patch deleted file mode 100644 index a48f258..0000000 --- a/dev-python/lxml/files/gtk-threading-filename-guessing.patch +++ /dev/null @@ -1,35 +0,0 @@ -=== src/lxml/apihelpers.pxi -================================================================== ---- src/lxml/apihelpers.pxi (revision 3804) -+++ src/lxml/apihelpers.pxi (revision 3805) -@@ -1107,20 +1107,16 @@ - Returns None if not a file object. - """ - # file instances have a name attribute -- try: -- return source.name -- except AttributeError: -- pass -+ filename = getattr3(source, 'name', None) -+ if filename is not None: -+ return filename - # gzip file instances have a filename attribute -- try: -- return source.filename -- except AttributeError: -- pass -+ filename = getattr3(source, 'filename', None) -+ if filename is not None: -+ return filename - # urllib2 provides a geturl() method -- try: -- geturl = source.geturl -- except AttributeError: -- # can't determine filename -- return None -- else: -+ geturl = getattr3(source, 'geturl', None) -+ if geturl is not None: - return geturl() -+ # can't determine filename -+ return None |