diff options
author | Rafael H. Schloming <rhs@apache.org> | 2009-11-13 21:47:43 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2009-11-13 21:47:43 +0000 |
commit | 208fb8cefbfdb4a193a319e6d9fc3ba7c81bcd65 (patch) | |
tree | f704978f5dbf852ba2fb60d7e677ad62e07dacf0 | |
parent | ab7955c6747f6377c2d36fe8686c3cec39d003b2 (diff) | |
download | qpid-python-208fb8cefbfdb4a193a319e6d9fc3ba7c81bcd65.tar.gz |
used cross-platform file modes
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@836008 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | python/qpid/ops.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/qpid/ops.py b/python/qpid/ops.py index 277d059203..61853522e9 100644 --- a/python/qpid/ops.py +++ b/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() |