Author: rhs
Date: Fri Nov 13 21:47:43 2009
New Revision: 836008

URL: http://svn.apache.org/viewvc?rev=836008&view=rev
Log:
used cross-platform file modes

Modified:
    qpid/trunk/qpid/python/qpid/ops.py

Modified: qpid/trunk/qpid/python/qpid/ops.py
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/ops.py?rev=836008&r1=836007&r2=836008&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/ops.py (original)
+++ qpid/trunk/qpid/python/qpid/ops.py Fri Nov 13 21:47:43 2009
@@ -211,7 +211,7 @@
 
 if os.path.exists(pclfile) and \
       os.path.getmtime(pclfile) > os.path.getmtime(file):
-  f = open(pclfile, "read")
+  f = open(pclfile, "r")
   types = pickle.load(f)
   f.close()
 else:
@@ -249,7 +249,7 @@
   types = [make(nd) for nd in type_decls]
 
   if os.access(os.path.dirname(os.path.abspath(pclfile)), os.W_OK):
-    f = open(pclfile, "write")
+    f = open(pclfile, "w")
     pickle.dump(types, f)
     f.close()
 



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to