[cw-shell] Write ignored scripts warning on stderr instead of stdout. stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 23 Apr 2010 17:01:45 +0200
branchstable
changeset 5399 03c641ae00a6
parent 5395 e0ab7433e640
child 5400 b7ab099b128a
[cw-shell] Write ignored scripts warning on stderr instead of stdout.
server/migractions.py
--- a/server/migractions.py	Fri Apr 23 17:32:47 2010 +0200
+++ b/server/migractions.py	Fri Apr 23 17:01:45 2010 +0200
@@ -116,10 +116,10 @@
                 return super(ServerMigrationHelper, self).cmd_process_script(
                     migrscript, funcname, *args, **kwargs)
             else:
-                print
-                print ('-> ignoring %s, only .py .sql and .txt scripts are considered' %
+                print >> sys.stderr
+                print >> sys.stderr, ('-> ignoring %s, only .py .sql and .txt scripts are considered' %
                        migrscript)
-                print
+                print >> sys.stderr
             self.commit()
         except:
             self.rollback()