mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
RISCOS changes by dschwertberger.
This commit is contained in:
parent
4ba3d657ef
commit
d74fb6b12a
6 changed files with 64 additions and 24 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue