Skip to content

Commit

Permalink
Update pastebinit.xml to not require parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
stgraber committed Jan 9, 2011
1 parent b107f2b commit 90ec65b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,12 @@ try:
if gotconfigxml:
try:
configxml = xml.dom.minidom.parseString(configtext)
website = getFirstNodeText(configxml, "pastebin")
user = getFirstNodeText(configxml, "author")
format = getFirstNodeText(configxml, "format")
jabberid = getFirstNodeText(configxml, "jabberid")
for variable,key in (('pastebin','website'),('author','user'),('format','format'),('jabberid','jabberid')):
try:
value = getFirstNodeText(configxml, variable)
vars()[key]=value
except:
pass
except KeyboardInterrupt:
sys.exit(_("KeyboardInterrupt caught."))
except:
Expand Down

0 comments on commit 90ec65b

Please sign in to comment.