Skip to content

Commit

Permalink
Use boolean values instead of magic numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Dec 30, 2009
1 parent c17a3a2 commit 4d8029f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ try:
f = open(configfile)
configtext = f.read()
f.close()
gotconfigxml = 1
gotconfigxml = True
except KeyboardInterrupt:
sys.exit(_("KeyboardInterrupt caught."))
except:
gotconfigxml = 0
gotconfigxml = False

#Parse configuration file
if gotconfigxml == 1:
if gotconfigxml:
try:
configxml = xml.dom.minidom.parseString(configtext)
website = getFirstNodeText(configxml, "pastebin")
Expand Down

0 comments on commit 4d8029f

Please sign in to comment.