Friday, February 3, 2012

Gist test

GitHub has this thing called "gist" that is sort of like Pastebin:

class Cases:
def __init__(self, CSVfile = None, salesperson = "All"):
self.caselist = []
if CSVfile == None:
print "No File"
else:
f = open(CSVfile, 'r')
reader = csv.DictReader(f)
for row in reader:
self.caselist.append(row)
f.close()
view raw gisttest.py hosted with ❤ by GitHub


Might use this if it behaves better than Pastebin.

No comments:

Post a Comment