48 lines
1.8 KiB
Diff
48 lines
1.8 KiB
Diff
diff -Nurp PyQt-x11-gpl-4.5.orig/pyuic/uic/port_v3/invoke.py PyQt-x11-gpl-4.5/pyuic/uic/port_v3/invoke.py
|
|
--- PyQt-x11-gpl-4.5.orig/pyuic/uic/port_v3/invoke.py 2009-06-15 12:14:22.853997598 +0200
|
|
+++ PyQt-x11-gpl-4.5/pyuic/uic/port_v3/invoke.py 2009-06-15 12:14:38.671746852 +0200
|
|
@@ -11,16 +11,16 @@ def invoke(driver):
|
|
try:
|
|
exit_status = driver.invoke()
|
|
|
|
- except IOError as e:
|
|
+ except IOError, e:
|
|
driver.on_IOError(e)
|
|
|
|
- except SyntaxError as e:
|
|
+ except SyntaxError, e:
|
|
driver.on_SyntaxError(e)
|
|
|
|
- except NoSuchWidgetError as e:
|
|
+ except NoSuchWidgetError, e:
|
|
driver.on_NoSuchWidgetError(e)
|
|
|
|
- except Exception as e:
|
|
+ except Exception, e:
|
|
driver.on_Exception(e)
|
|
|
|
return exit_status
|
|
diff -Nurp PyQt-x11-gpl-4.5.orig/pyuic/uic/port_v3/load_plugin.py PyQt-x11-gpl-4.5/pyuic/uic/port_v3/load_plugin.py
|
|
--- PyQt-x11-gpl-4.5.orig/pyuic/uic/port_v3/load_plugin.py 2009-06-15 12:14:22.860042936 +0200
|
|
+++ PyQt-x11-gpl-4.5/pyuic/uic/port_v3/load_plugin.py 2009-06-15 12:14:38.694838102 +0200
|
|
@@ -11,7 +11,7 @@ def load_plugin(plugin, plugin_globals,
|
|
exec(plugin.read(), plugin_globals, plugin_locals)
|
|
except ImportError:
|
|
return False
|
|
- except Exception as e:
|
|
+ except Exception, e:
|
|
raise WidgetPluginError("%s: %s" % (e.__class__, str(e)))
|
|
|
|
return True
|
|
diff -Nurp PyQt-x11-gpl-4.5.orig/pyuic/uic/port_v3/proxy_base.py PyQt-x11-gpl-4.5/pyuic/uic/port_v3/proxy_base.py
|
|
--- PyQt-x11-gpl-4.5.orig/pyuic/uic/port_v3/proxy_base.py 2009-06-05 10:50:39.000000000 +0200
|
|
+++ PyQt-x11-gpl-4.5/pyuic/uic/port_v3/proxy_base.py 2009-06-15 12:20:26.991868939 +0200
|
|
@@ -1,5 +1,5 @@
|
|
from PyQt4.uic.Compiler.proxy_type import ProxyType
|
|
|
|
|
|
-class ProxyBase(metaclass=ProxyType):
|
|
- pass
|
|
+class ProxyBase():
|
|
+ __metaclass__ = ProxyType
|