# HG changeset patch # User Catalin Costache # Date 1387753544 -7200 # Node ID 6399abfdb127008cb8c21d40dae9bdff09640c57 # Parent d1b458495f4fd1c916d474aecdcf61f985c56ed2 python3 compatibility fixes diff -r d1b458495f4f -r 6399abfdb127 peat --- a/peat Sat Nov 24 14:44:12 2012 -0500 +++ b/peat Mon Dec 23 01:05:44 2013 +0200 @@ -55,7 +55,7 @@ def log(s): if verbose: - print s + print(s) def die(s): sys.stderr.write('ERROR: ' + s + '\n') @@ -67,7 +67,7 @@ try: if os.stat(p).st_mtime >= cutoff: return True - except OSError, e: + except OSError as e: # If the file has been deleted since we started watching, don't # worry about it. if e.errno == errno.ENOENT: