Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
ad26c082
Commit
ad26c082
authored
Mar 08, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Paul made change to clear method to see if keys exist.
parent
fcecb762
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/ZODB/Persistence.py
src/ZODB/Persistence.py
+6
-3
No files found.
src/ZODB/Persistence.py
View file @
ad26c082
...
...
@@ -4,7 +4,7 @@
__doc__
=
'''Python implementation of persistent base types
$Id: Persistence.py,v 1.
2 1997/03/05 22:59:48 jim
Exp $'''
$Id: Persistence.py,v 1.
3 1997/03/08 22:03:54 jfulton
Exp $'''
# Copyright
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
...
@@ -60,6 +60,9 @@ $Id: Persistence.py,v 1.2 1997/03/05 22:59:48 jim Exp $'''
# (540) 371-6909
#
# $Log: Persistence.py,v $
# Revision 1.3 1997/03/08 22:03:54 jfulton
# Paul made change to clear method to see if keys exist.
#
# Revision 1.2 1997/03/05 22:59:48 jim
# Added clear method.
#
...
...
@@ -68,7 +71,7 @@ $Id: Persistence.py,v 1.2 1997/03/05 22:59:48 jim Exp $'''
#
#
#
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
class
Persistent
:
"""
\
...
...
@@ -248,7 +251,7 @@ class PersistentMapping(Persistent):
def
clear
(
self
):
self
.
_container
=
{}
del
self
.
_keys
if
hasattr
(
self
,
'_keys'
):
del
self
.
_keys
def
values
(
self
):
return
map
(
lambda
k
,
d
=
self
:
d
[
k
],
self
.
keys
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment