Remove argument from open() call, works around a problem with pyuic4.
Worked out by me and independently suggested by Phil @ riverbank.
This commit is contained in:
parent
7059fe461d
commit
c033bd2ec3
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.18 2010/09/07 08:58:16 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.19 2010/09/07 10:22:06 sthen Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -10,6 +10,7 @@ V= 4.7.6
|
||||
DISTNAME= PyQt-x11-gpl-${V}
|
||||
PKGNAME= py-qt4-${V}
|
||||
PKGNAME-main= py-qt4-${V}
|
||||
REVISION-main= 0
|
||||
PKGNAME-docs= py-qt4-docs-${V}
|
||||
|
||||
CATEGORIES= x11 devel
|
||||
|
12
x11/py-qt4/patches/patch-pyuic_uic_driver_py
Normal file
12
x11/py-qt4/patches/patch-pyuic_uic_driver_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-pyuic_uic_driver_py,v 1.1 2010/09/07 10:22:06 sthen Exp $
|
||||
--- pyuic/uic/driver.py.orig Tue Sep 7 10:27:17 2010
|
||||
+++ pyuic/uic/driver.py Tue Sep 7 10:27:24 2010
|
||||
@@ -57,7 +57,7 @@ class Driver(object):
|
||||
if self._opts.output == "-":
|
||||
pyfile = sys.stdout
|
||||
else:
|
||||
- pyfile = open(self._opts.output, 'wt', encoding='utf8')
|
||||
+ pyfile = open(self._opts.output, 'wt')
|
||||
|
||||
compileUi(self._ui_file, pyfile, self._opts.execute, self._opts.indent,
|
||||
self._opts.pyqt3_wrapper, self._opts.from_imports)
|
Loading…
Reference in New Issue
Block a user