Skip to content

Instantly share code, notes, and snippets.

@pzelnip
Created May 6, 2013 23:02
Show Gist options
  • Save pzelnip/5528969 to your computer and use it in GitHub Desktop.
Save pzelnip/5528969 to your computer and use it in GitHub Desktop.
Getting what the grading system gave me.
import sys
lines = []
for i in range(1, len(sys.argv)):
lines.append("================================== START OF sys.argv%s==========================\n" % i)
with open(sys.argv[i]) as fobj:
for line in fobj:
lines.append(line.decode('utf-8'))
lines.append("================================== END OF sys.argv%s==========================\n" % i)
s = "".join(lines)
raise ValueError(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment