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
4036206a
Commit
4036206a
authored
Nov 15, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error-message typo
parent
8f507c4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
transaction/_transaction.py
transaction/_transaction.py
+5
-5
No files found.
transaction/_transaction.py
View file @
4036206a
...
...
@@ -136,7 +136,7 @@ class Transaction(object):
@
user
.
setter
def
user
(
self
,
v
):
if
not
isinstance
(
v
,
text_type
):
raise
TypeError
(
"User must be text (unicod
d
)"
)
raise
TypeError
(
"User must be text (unicod
e
)"
)
self
.
_user
=
v
@
property
...
...
@@ -146,7 +146,7 @@ class Transaction(object):
@
description
.
setter
def
description
(
self
,
v
):
if
not
isinstance
(
v
,
text_type
):
raise
TypeError
(
"Description must be text (unicod
d
)"
)
raise
TypeError
(
"Description must be text (unicod
e
)"
)
self
.
_description
=
v
def
isDoomed
(
self
):
...
...
@@ -534,7 +534,7 @@ class Transaction(object):
""" See ITransaction.
"""
if
not
isinstance
(
text
,
text_type
):
raise
TypeError
(
"Note must be text (unicod
d
)"
)
raise
TypeError
(
"Note must be text (unicod
e
)"
)
text
=
text
.
strip
()
if
self
.
description
:
...
...
@@ -546,9 +546,9 @@ class Transaction(object):
""" See ITransaction.
"""
if
not
isinstance
(
user_name
,
text_type
):
raise
TypeError
(
"User name must be text (unicod
d
)"
)
raise
TypeError
(
"User name must be text (unicod
e
)"
)
if
not
isinstance
(
path
,
text_type
):
raise
TypeError
(
"User name must be text (unicod
d
)"
)
raise
TypeError
(
"User name must be text (unicod
e
)"
)
self
.
user
=
u"%s %s"
%
(
path
,
user_name
)
def
setExtendedInfo
(
self
,
name
,
value
):
...
...
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