From 208fb8cefbfdb4a193a319e6d9fc3ba7c81bcd65 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Fri, 13 Nov 2009 21:47:43 +0000 Subject: used cross-platform file modes git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@836008 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/ops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') 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() -- cgit v1.2.1