[asterisk-commits] dlee: branch dlee/ari-url-shuffle r391670 - /team/dlee/ari-url-shuffle/rest-a...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 13 11:43:57 CDT 2013


Author: dlee
Date: Thu Jun 13 11:43:55 2013
New Revision: 391670

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=391670
Log:
Cleaned up debug prints

Modified:
    team/dlee/ari-url-shuffle/rest-api-templates/swagger_model.py

Modified: team/dlee/ari-url-shuffle/rest-api-templates/swagger_model.py
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ari-url-shuffle/rest-api-templates/swagger_model.py?view=diff&rev=391670&r1=391669&r2=391670
==============================================================================
--- team/dlee/ari-url-shuffle/rest-api-templates/swagger_model.py (original)
+++ team/dlee/ari-url-shuffle/rest-api-templates/swagger_model.py Thu Jun 13 11:43:55 2013
@@ -273,7 +273,6 @@
             Operation().load(j, processor, context) for j in op_json]
         self.has_websocket = \
             filter(lambda op: op.is_websocket, self.operations) != []
-        print "%r" % (filter(lambda op: op.is_websocket, self.operations) and True)
         return self
 
 
@@ -365,7 +364,8 @@
             .replace(".json", ".{format}")
 
         if self.resource_path != expected_resource_path:
-            print "%s != %s" % (self.resource_path, expected_resource_path)
+            print >> sys.stderr, \
+                "%s != %s" % (self.resource_path, expected_resource_path)
             raise SwaggerError("resourcePath has incorrect value", context)
 
         return self




More information about the asterisk-commits mailing list