Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
67ffec1f
Commit
67ffec1f
authored
Oct 02, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of default argument optimization.
parent
ed847de9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
trunk/src/ZODB/Transaction.py
trunk/src/ZODB/Transaction.py
+8
-8
No files found.
trunk/src/ZODB/Transaction.py
View file @
67ffec1f
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Transaction management
$Id: Transaction.py,v 1.5
1 2003/10/02 20:17:36
jeremy Exp $
$Id: Transaction.py,v 1.5
2 2003/10/02 22:11:28
jeremy Exp $
"""
import
sys
...
...
@@ -459,24 +459,24 @@ try:
except
:
_t
=
Transaction
(
None
)
def
get_transaction
(
_t
=
_t
):
def
get_transaction
():
return
_t
def
free_transaction
(
_t
=
_t
):
def
free_transaction
():
_t
.
__init__
()
else
:
_t
=
{}
def
get_transaction
(
_id
=
thread
.
get_ident
,
_t
=
_t
,
get
=
_t
.
get
):
id
=
_id
()
t
=
get
(
id
,
None
)
def
get_transaction
():
id
=
thread
.
get_ident
()
t
=
_t
.
get
(
id
,
None
)
if
t
is
None
:
_t
[
id
]
=
t
=
Transaction
(
id
)
return
t
def
free_transaction
(
_id
=
thread
.
get_ident
,
_t
=
_t
):
id
=
_id
()
def
free_transaction
():
id
=
thread
.
get_ident
()
try
:
del
_t
[
id
]
except
KeyError
:
...
...
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