6399abfdb127

python3 compatibility fixes
[view raw] [browse files]
author Catalin Costache <catacgc@gmail.com>
date Mon, 23 Dec 2013 01:05:44 +0200
parents d1b458495f4f
children a41fd22e80cb
branches/tags (none)
files peat

Changes

--- 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: