Skip to content

Commit

Permalink
Merge pull request boto#1327 from oozie/swf-l2_repr_fix
Browse files Browse the repository at this point in the history
Fixing the bug in logic of object's string representation.
  • Loading branch information
garnaat committed Feb 21, 2013
2 parents c6392be + dcf9b90 commit 60df2a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boto/swf/layer2.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def __init__(self, **kwargs):

def __repr__(self):
"""Generate string representation."""
rep_str = self.name
rep_str = str(self.name)
if hasattr(self, 'version'):
rep_str += '-' + getattr(self, 'version')
rep_str += '-' + str(getattr(self, 'version'))
return '<%s %r at 0x%x>' % (self.__class__.__name__, rep_str, id(self))

class Domain(SWFBase):
Expand Down

0 comments on commit 60df2a8

Please sign in to comment.