Skip to content

Instantly share code, notes, and snippets.

@bonnieking
Created January 28, 2013 22:00
Show Gist options
  • Save bonnieking/4659549 to your computer and use it in GitHub Desktop.
Save bonnieking/4659549 to your computer and use it in GitHub Desktop.
if len(self.args) != 1:
#print >> sys.stderr, "You must specify one file name, or maybe you need --help?"
#sys.exit(1)
self.stdin_mode = True
self.xml_string = i.read()
else:
self.stdin_mode = False
self.file = self.args[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment