summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-11-13 21:47:43 +0000
committerRafael H. Schloming <rhs@apache.org>2009-11-13 21:47:43 +0000
commit2cd99f34c7a26842ec3f2b740773113a654e815b (patch)
tree96993c68bd1c0a4607191ab36a4f60c9fc13c185
parent24132d457c133190f7e3bb58e7c66a5c2cfbc0d4 (diff)
downloadqpid-python-2cd99f34c7a26842ec3f2b740773113a654e815b.tar.gz
used cross-platform file modes
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@836008 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/python/qpid/ops.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/python/qpid/ops.py b/qpid/python/qpid/ops.py
index 277d059203..61853522e9 100644
--- a/qpid/python/qpid/ops.py
+++ b/qpid/python/qpid/ops.py
@@ -211,7 +211,7 @@ pclfile = "%s.ops.pcl" % file
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 @@ else:
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()