[midisnoop] push by surfacep...@gmail.com - Make python install scripts work with python 3. Increment revision nu... on 2013-03-02 06:22 GMT

1 view
Skip to first unread message

midi...@googlecode.com

unread,
Mar 2, 2013, 1:22:10 AM3/2/13
to midisnoop-...@googlegroups.com
Revision: 61cd5942efb6
Author: Devin Anderson <surface...@gmail.com>
Date: Fri Mar 1 22:21:58 2013
Log: Make python install scripts work with python 3. Increment
revision number in preparation for next release. Bugs reported by Rob
Freedmen.

http://code.google.com/p/midisnoop/source/detail?r=61cd5942efb6

Modified:
/install/util.py
/src/src.pro

=======================================
--- /install/util.py Wed Feb 27 22:04:38 2013
+++ /install/util.py Fri Mar 1 22:21:58 2013
@@ -1,4 +1,4 @@
-from gzip import open
+from gzip import open as _open
from os import (
X_OK,
access,
@@ -17,7 +17,7 @@

MAJOR_VERSION = 0
MINOR_VERSION = 1
-REVISION = 2
+REVISION = 3
VERSION = "%d.%d.%d" % (MAJOR_VERSION, MINOR_VERSION, REVISION)

PLATFORM_MACX = 1
@@ -28,7 +28,7 @@
(win32_ver()[0] and PLATFORM_WIN32) or PLATFORM_UNIX

def createSourcePackage(path):
- gzipStream = open(filename=path, mode="wb")
+ gzipStream = _open(filename=path, mode="wb")
try:
gitArgs = ["git", "archive", "--format=tar",
"--prefix=midisnoop-%s%s" % (VERSION, sep), "HEAD"]
@@ -86,13 +86,13 @@
sourceDir = dirname(source)
if not isdir(sourceDir):
makedirs(sourceDir)
- fp = file(source)
+ fp = open(source)
try:
s = fp.read()
finally:
fp.close()
s = Template(s).substitute(data)
- fp = file(destination, 'w')
+ fp = open(destination, 'w')
try:
fp.write(s)
finally:
=======================================
--- /src/src.pro Wed Feb 27 22:04:38 2013
+++ /src/src.pro Fri Mar 1 22:21:58 2013
@@ -24,7 +24,7 @@
MINOR_VERSION = 1
}
isEmpty(REVISION) {
- REVISION = 2
+ REVISION = 3
}
MIDISNOOP_VERSION = $${MAJOR_VERSION}.$${MINOR_VERSION}.$${REVISION}

Reply all
Reply to author
Forward
0 new messages