Skip to content

Commit

Permalink
Remove misc print statement at the end of the function
Browse files Browse the repository at this point in the history
that loads definition files and make sure we thoroughly check
that we should just use the cards name since before this commit
it would be true if 'nosuitname' had a value of false since
the parent has the attribute of nosuitname.
  • Loading branch information
ShadowKyogre committed Jan 12, 2013
1 parent 360d2e1 commit a3832f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion qtarotlib/guiconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def load_deck_defs(self):
self.deck_defs[deck_def.attrib['name']]['skins']=[]
except DocumentInvalid as e:
print('File',path,'is invalid for these reason(s):',e,file=os.sys.stderr)
print(self.deck_defs)

def load_skins(self):
deck_skins_path=QtCore.QDir("skins:/")
Expand Down
2 changes: 1 addition & 1 deletion qtarotlib/xmlobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def conforms(self, skin):
class TarotCard(objectify.ObjectifiedElement):
def fullname(self):
parent=self.getparent()
if 'nosuitname' in parent.attrib:
if 'nosuitname' in parent.attrib and parent.attrib['nosuitname'] in ('1','true'):
return self.attrib['name']
else:
return "{name} of {suit}"\
Expand Down

0 comments on commit a3832f4

Please sign in to comment.