aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2011-05-12 16:21:09 -0400
committerW. Trevor King <wking@drexel.edu>2011-05-12 16:21:09 -0400
commitc5d08a943af56afb4ce1f9ae114bfb756acd0e95 (patch)
treed292e748f06ec392c8258ed530a9824ed4a25c32 /libbe/storage
parentc56922285530fb95768998bffef176bad53d1d26 (diff)
downloadbugseverywhere-c5d08a943af56afb4ce1f9ae114bfb756acd0e95.tar.gz
Use open() instead of file() in CachedPathID doctests (2to3 compatability).
Diffstat (limited to 'libbe/storage')
-rw-r--r--libbe/storage/vcs/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py
index 8d2ab60..d377398 100644
--- a/libbe/storage/vcs/base.py
+++ b/libbe/storage/vcs/base.py
@@ -156,11 +156,11 @@ class CachedPathID (object):
>>> os.mkdir(os.path.join(dir.path, '.be', 'abc', 'bugs', '123', 'comments'))
>>> os.mkdir(os.path.join(dir.path, '.be', 'abc', 'bugs', '123', 'comments', 'def'))
>>> os.mkdir(os.path.join(dir.path, '.be', 'abc', 'bugs', '456'))
- >>> file(os.path.join(dir.path, '.be', 'abc', 'values'),
+ >>> open(os.path.join(dir.path, '.be', 'abc', 'values'),
... 'w').close()
- >>> file(os.path.join(dir.path, '.be', 'abc', 'bugs', '123', 'values'),
+ >>> open(os.path.join(dir.path, '.be', 'abc', 'bugs', '123', 'values'),
... 'w').close()
- >>> file(os.path.join(dir.path, '.be', 'abc', 'bugs', '123', 'comments', 'def', 'values'),
+ >>> open(os.path.join(dir.path, '.be', 'abc', 'bugs', '123', 'comments', 'def', 'values'),
... 'w').close()
>>> c = CachedPathID()
>>> c.root(dir.path)