Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
10b0eb3d
Commit
10b0eb3d
authored
Oct 25, 2008
by
Alexandre Vassalotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a grammar mistake in a comment.
parent
1ef4f3b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/includes/dbpickle.py
Doc/includes/dbpickle.py
+3
-3
No files found.
Doc/includes/dbpickle.py
View file @
10b0eb3d
...
@@ -12,10 +12,10 @@ class DBPickler(pickle.Pickler):
...
@@ -12,10 +12,10 @@ class DBPickler(pickle.Pickler):
def
persistent_id
(
self
,
obj
):
def
persistent_id
(
self
,
obj
):
# Instead of pickling MemoRecord as a regular class instance, we emit a
# Instead of pickling MemoRecord as a regular class instance, we emit a
# persistent ID
instead
.
# persistent ID.
if
isinstance
(
obj
,
MemoRecord
):
if
isinstance
(
obj
,
MemoRecord
):
# Here, our persistent ID is simply a tuple containing a tag and a
# Here, our persistent ID is simply a tuple
,
containing a tag and a
# key which refers to a specific record in the database.
# key
,
which refers to a specific record in the database.
return
(
"MemoRecord"
,
obj
.
key
)
return
(
"MemoRecord"
,
obj
.
key
)
else
:
else
:
# If obj does not have a persistent ID, return None. This means obj
# If obj does not have a persistent ID, return None. This means obj
...
...
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