summaryrefslogtreecommitdiffstats
path: root/Lib/dumbdbm.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-02 06:43:49 (GMT)
committerGuido van Rossum <guido@python.org>2001-03-02 06:43:49 (GMT)
commitd74fb6b12a9a53ce09648484076c84e727561612 (patch)
tree1dc433fdc367d5e2e26eef57606c95df8c2c089b /Lib/dumbdbm.py
parent4ba3d657efc124a79b24cc9d8160191384d341de (diff)
downloadcpython-d74fb6b12a9a53ce09648484076c84e727561612.zip
cpython-d74fb6b12a9a53ce09648484076c84e727561612.tar.gz
cpython-d74fb6b12a9a53ce09648484076c84e727561612.tar.bz2
RISCOS changes by dschwertberger.
Diffstat (limited to 'Lib/dumbdbm.py')
-rw-r--r--Lib/dumbdbm.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py
index 45a2f36..f1cc41b 100644
--- a/Lib/dumbdbm.py
+++ b/Lib/dumbdbm.py
@@ -33,9 +33,13 @@ error = IOError # For anydbm
class _Database:
def __init__(self, file):
- self._dirfile = file + '.dir'
- self._datfile = file + '.dat'
- self._bakfile = file + '.bak'
+ if _os.sep == '.':
+ endsep = '/'
+ else:
+ endsep = '.'
+ self._dirfile = file + endsep + 'dir'
+ self._datfile = file + endsep + 'dat'
+ self._bakfile = file + endsep + 'bak'
# Mod by Jack: create data file if needed
try:
f = _open(self._datfile, 'r')