a41fd22e80cb v1.0.1

Merge.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 09 Dec 2015 13:54:53 +0000
parents c4f5cf1bfffd (current diff) 6399abfdb127 (diff)
children c34d05425c3f
branches/tags v1.0.1
files peat

Changes

--- a/peat	Sat Aug 29 16:20:03 2015 +0000
+++ b/peat	Wed Dec 09 13:54:53 2015 +0000
@@ -47,7 +47,7 @@
 
 def log(s):
     if verbose:
-        print s
+        print(s)
 
 def die(s):
     sys.stderr.write('ERROR: ' + s + '\n')
@@ -59,7 +59,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: