From af0ac85c7a959306f935004bb23d8a650692f6b3 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Fri, 13 Jun 2008 01:09:05 +0200 Subject: Cleaned --- .../files/gtk-threading-filename-guessing.patch | 35 ---------------------- 1 file changed, 35 deletions(-) delete mode 100644 dev-python/lxml/files/gtk-threading-filename-guessing.patch (limited to 'dev-python/lxml/files/gtk-threading-filename-guessing.patch') 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 -- cgit v1.2.3-70-g09d2