summaryrefslogtreecommitdiffstats
path: root/Lib/dumbdbm.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-24 20:42:55 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-24 20:42:55 (GMT)
commite2ae77b8b8a62e648bb1864a9b36ef3280984404 (patch)
treee03ad6f126a16529b2fb43671903e357bcb05835 /Lib/dumbdbm.py
parentc6ac8a78f668123ec5c2c3d5a824e7886e9a1c60 (diff)
downloadcpython-e2ae77b8b8a62e648bb1864a9b36ef3280984404.zip
cpython-e2ae77b8b8a62e648bb1864a9b36ef3280984404.tar.gz
cpython-e2ae77b8b8a62e648bb1864a9b36ef3280984404.tar.bz2
SF patch #474590 -- RISC OS support
Diffstat (limited to 'Lib/dumbdbm.py')
-rw-r--r--Lib/dumbdbm.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py
index 287a8a0..d5df1d5 100644
--- a/Lib/dumbdbm.py
+++ b/Lib/dumbdbm.py
@@ -33,13 +33,9 @@ error = IOError # For anydbm
class _Database:
def __init__(self, file):
- if _os.sep == '.':
- endsep = '/'
- else:
- endsep = '.'
- self._dirfile = file + endsep + 'dir'
- self._datfile = file + endsep + 'dat'
- self._bakfile = file + endsep + 'bak'
+ self._dirfile = file + _os.extsep + 'dir'
+ self._datfile = file + _os.extsep + 'dat'
+ self._bakfile = file + _os.extsep + 'bak'
# Mod by Jack: create data file if needed
try:
f = _open(self._datfile, 'r')