Some Python3 related fixes.

This commit is contained in:
Antony Lee 2013-12-16 00:25:38 -08:00
parent 768c2b3356
commit a9b1fd9079
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ if len(sys.argv) > 1:
else:
fileName = 'test.hdf5'
if not os.path.isfile(fileName):
print "No suitable HDF5 file found. Use createFile() to generate an example file."
print("No suitable HDF5 file found. Use createFile() to generate an example file.")
os._exit(1)
plt = pg.plot()

View File

@ -46,7 +46,7 @@ try:
lastTag = gitCommit(lastTagName)
head = gitCommit('HEAD')
if head != lastTag:
branch = re.search(r'\* (.*)', check_output(['git', 'branch'])).group(1)
branch = re.search(r'\* (.*)', check_output(['git', 'branch'], universal_newlines=True)).group(1)
version = version + "-%s-%s" % (branch, head[:10])
# any uncommitted modifications?