Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
transaction
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
transaction
Commits
c729e5f9
Commit
c729e5f9
authored
Dec 17, 2012
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PEP8, whitespace.
parent
90aa4eb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
transaction/_manager.py
transaction/_manager.py
+4
-3
No files found.
transaction/_manager.py
View file @
c729e5f9
...
...
@@ -21,9 +21,9 @@ import threading
from
zope.interface
import
implementer
from
transaction.weakset
import
WeakSet
from
transaction.interfaces
import
ITransactionManager
from
transaction.interfaces
import
TransientError
from
transaction.weakset
import
WeakSet
from
transaction._compat
import
reraise
from
transaction._transaction
import
Transaction
...
...
@@ -54,6 +54,7 @@ def _new_transaction(txn, synchs):
# so that Transactions "see" synchronizers that get registered after the
# Transaction object is constructed.
@
implementer
(
ITransactionManager
)
class
TransactionManager
(
object
):
...
...
@@ -149,6 +150,7 @@ class ThreadTransactionManager(TransactionManager, threading.local):
Each thread is associated with a unique transaction.
"""
class
Attempt
(
object
):
def
__init__
(
self
,
manager
):
...
...
@@ -172,4 +174,3 @@ class Attempt(object):
return
self
.
_retry_or_raise
(
*
sys
.
exc_info
())
else
:
return
self
.
_retry_or_raise
(
t
,
v
,
tb
)
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