Skip to content

Commit

Permalink
Merge pull request #1021 from curiousleo/patch-2
Browse files Browse the repository at this point in the history
Travis: build with Python 3 (fixes master build)
  • Loading branch information
PMehrfeld authored Oct 16, 2020
2 parents c17dec3 + 3209a84 commit fbcabcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
python:
- "2.7"
- "3.8"

cache: pip

Expand Down
6 changes: 3 additions & 3 deletions bin/runUnitTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def _validate_html(path):
n_msg = len(errMsg)
for i in range(n_msg):
if i == 0:
print "The following malformed html syntax has been found:\n%s" % errMsg[i]
print("The following malformed html syntax has been found:\n%s" % errMsg[i])
else:
print errMsg[i]
print(errMsg[i])

if n_msg == 0:
return 0
Expand All @@ -57,7 +57,7 @@ def _setEnvironmentVariables(var, value):
'''
import os
import platform
if os.environ.has_key(var):
if var in os.environ:
if platform.system() == "Windows":
os.environ[var] = value + ";" + os.environ[var]
else:
Expand Down

0 comments on commit fbcabcb

Please sign in to comment.