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
4e912c57
Commit
4e912c57
authored
Oct 30, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use apply(), use f(foo, *args, *kwargs).
parent
9f75d6c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
src/ZODB/tests/StorageTestBase.py
src/ZODB/tests/StorageTestBase.py
+1
-2
src/ZODB/tests/Synchronization.py
src/ZODB/tests/Synchronization.py
+1
-2
No files found.
src/ZODB/tests/StorageTestBase.py
View file @
4e912c57
...
...
@@ -100,8 +100,7 @@ def handle_serials(oid, *args):
A helper for function _handle_all_serials().
"""
args
=
(
oid
,)
+
args
return
apply
(
handle_all_serials
,
args
)[
oid
]
return
handle_all_serials
(
oid
,
*
args
)[
oid
]
def
import_helper
(
name
):
mod
=
__import__
(
name
)
...
...
src/ZODB/tests/Synchronization.py
View file @
4e912c57
...
...
@@ -63,8 +63,7 @@ class SynchronizedStorage:
## self.assertRaises(StorageTransactionError, callable *args)
def
verifyNotCommitting
(
self
,
callable
,
*
args
):
args
=
(
StorageTransactionError
,
callable
)
+
args
apply
(
self
.
assertRaises
,
args
)
self
.
assertRaises
(
StorageTransactionError
,
callable
,
*
args
)
def
verifyWrongTrans
(
self
,
callable
,
*
args
):
t
=
Transaction
()
...
...
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