Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Zope
Commits
50b37252
Commit
50b37252
authored
Oct 02, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Python 2.1 workarounds
parent
c771334f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
lib/python/BDBStorage/BDBFullStorage.py
lib/python/BDBStorage/BDBFullStorage.py
+2
-14
No files found.
lib/python/BDBStorage/BDBFullStorage.py
View file @
50b37252
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"""Berkeley storage with full undo and versioning support.
"""Berkeley storage with full undo and versioning support.
$Revision: 1.7
4
$
$Revision: 1.7
5
$
"""
"""
import
time
import
time
...
@@ -39,19 +39,7 @@ DNE = '\377'*8
...
@@ -39,19 +39,7 @@ DNE = '\377'*8
# DEBUGGING
# DEBUGGING
#DNE = 'nonexist'
#DNE = 'nonexist'
try
:
from
_helper
import
incr
# Python 2.2
from
_helper
import
incr
except
ImportError
:
# Python 2.1
def
incr
(
refcount
,
delta
):
return
p64
(
U64
(
refcount
)
+
delta
)
try
:
True
,
False
except
NameError
:
True
=
1
False
=
0
BDBFULL_SCHEMA_VERSION
=
'BF01'
BDBFULL_SCHEMA_VERSION
=
'BF01'
...
...
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