From e2ae77b8b8a62e648bb1864a9b36ef3280984404 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 24 Oct 2001 20:42:55 +0000 Subject: SF patch #474590 -- RISC OS support --- Lib/dumbdbm.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Lib/dumbdbm.py') diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py index 287a8a0c1b..d5df1d501f 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') -- cgit v1.2.1