Skip to content

Commit

Permalink
Python 2.x: sys.stderr.write <- print(file=stderr)
Browse files Browse the repository at this point in the history
This makes setup.py work on Python 2.x too, eg. on OS X.
  • Loading branch information
nanoant committed Apr 15, 2015
1 parent 6b1fa25 commit dbd79ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@

def check_path_is_dir(p):
if not os.path.isdir(p):
print('Specified PC path {} is not a directory or does not exist'.format(p),
file=sys.stderr)
sys.stderr.write('Specified PC path {} is not a directory or does not exist'.format(p))


def split_char():
Expand Down

0 comments on commit dbd79ad

Please sign in to comment.