diff -r d901c36bcfce -r 358d8bed9626 setup.py --- a/setup.py Thu Feb 14 15:39:23 2013 +0100 +++ b/setup.py Thu Feb 14 15:38:25 2013 +0100 @@ -129,7 +129,7 @@ shutil.copy2(src, dest) try: os.mkdir(to_dir) - except OSError, ex: + except OSError as ex: # file exists ? import errno if ex.errno != errno.EEXIST: