Skip to content

Commit

Permalink
error-message typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Nov 15, 2016
1 parent 8f507c4 commit 4036206
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions transaction/_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def user(self):
@user.setter
def user(self, v):
if not isinstance(v, text_type):
raise TypeError("User must be text (unicodd)")
raise TypeError("User must be text (unicode)")
self._user = v

@property
Expand All @@ -146,7 +146,7 @@ def description(self):
@description.setter
def description(self, v):
if not isinstance(v, text_type):
raise TypeError("Description must be text (unicodd)")
raise TypeError("Description must be text (unicode)")
self._description = v

def isDoomed(self):
Expand Down Expand Up @@ -534,7 +534,7 @@ def note(self, text):
""" See ITransaction.
"""
if not isinstance(text, text_type):
raise TypeError("Note must be text (unicodd)")
raise TypeError("Note must be text (unicode)")

text = text.strip()
if self.description:
Expand All @@ -546,9 +546,9 @@ def setUser(self, user_name, path=u"/"):
""" See ITransaction.
"""
if not isinstance(user_name, text_type):
raise TypeError("User name must be text (unicodd)")
raise TypeError("User name must be text (unicode)")
if not isinstance(path, text_type):
raise TypeError("User name must be text (unicodd)")
raise TypeError("User name must be text (unicode)")
self.user = u"%s %s" % (path, user_name)

def setExtendedInfo(self, name, value):
Expand Down

0 comments on commit 4036206

Please sign in to comment.