diff options
| author | Guido van Rossum <guido@python.org> | 2001-03-02 06:43:49 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2001-03-02 06:43:49 +0000 |
| commit | d74fb6b12a9a53ce09648484076c84e727561612 (patch) | |
| tree | 1dc433fdc367d5e2e26eef57606c95df8c2c089b /Lib/dumbdbm.py | |
| parent | 4ba3d657efc124a79b24cc9d8160191384d341de (diff) | |
| download | cpython-git-d74fb6b12a9a53ce09648484076c84e727561612.tar.gz | |
RISCOS changes by dschwertberger.
Diffstat (limited to 'Lib/dumbdbm.py')
| -rw-r--r-- | Lib/dumbdbm.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py index 45a2f36a5d..f1cc41bd45 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') |
