##// END OF EJS Templates
update_revnum opens the file in binary mode (does not botch CRLF)
Ville M. Vainio -
Show More
@@ -22,7 +22,7 b" name = 'ipython'"
22 # because bdist_rpm does not accept dashes (an RPM) convention, and
22 # because bdist_rpm does not accept dashes (an RPM) convention, and
23 # bdist_deb does not accept underscores (a Debian convention).
23 # bdist_deb does not accept underscores (a Debian convention).
24
24
25 revision = '45'
25 revision = '46'
26
26
27 version = '0.8.3.bzr.r' + revision
27 version = '0.8.3.bzr.r' + revision
28
28
@@ -9,6 +9,6 b" rev = os.popen('bzr revno').read().strip()"
9 print "current rev is",rev
9 print "current rev is",rev
10 assert ':' not in rev
10 assert ':' not in rev
11
11
12 rfile = open('../IPython/Release.py').read()
12 rfile = open('../IPython/Release.py','rb').read()
13 newcont = re.sub(r'revision\s*=.*', "revision = '%s'" % rev, rfile)
13 newcont = re.sub(r'revision\s*=.*', "revision = '%s'" % rev, rfile)
14 open('../IPython/Release.py','w').write(newcont)
14 open('../IPython/Release.py','wb').write(newcont)
General Comments 0
You need to be logged in to leave comments. Login now