diff wsgintegrate/factory.py @ 29:d742aff49859

-> python3
author Jeff Hammel <k0scist@gmail.com>
date Sun, 10 May 2020 18:46:40 -0700
parents caf763fc1c7d
children
line wrap: on
line diff
--- a/wsgintegrate/factory.py	Sun May 10 18:39:21 2020 -0700
+++ b/wsgintegrate/factory.py	Sun May 10 18:46:40 2020 -0700
@@ -18,12 +18,12 @@
         # reload the .ini file
         mtime = os.path.getmtime(self.inifile)
         if mtime > self.mtime:
-            print "Reloading '%s': %s > %s" % (self.inifile, mtime, self.mtime)
+            print("Reloading '%s': %s > %s" % (self.inifile, mtime, self.mtime))
             try:
                 config = self.read(self.inifile)
                 self.configure(config)
-            except Exception, e:
-                print >> sys.stderr, "Error reading '%s': %s" % (self.inifile, e)
+            except Exception as e:
+                sys.stderr.write("Error reading '%s': %s\n" % (self.inifile, e))
             self.mtime = mtime
 
         app = self.load(self.main)