Skip to content
Snippets Groups Projects
Commit a9b1fd90 authored by Antony Lee's avatar Antony Lee
Browse files

Some Python3 related fixes.

parent 768c2b33
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment