/gist:e2b188fa56f9be0d956c Secret
Last active
January 3, 2016 01:49
-
-
Save rbpasker/e2b188fa56f9be0d956c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actions = { 'content' : lambda x : print x} | |
def make_md(self, file): | |
for id in sorted(file.iterkeys()): | |
action = actions.get(id) | |
if action != None: | |
action(file.get(id)) | |
when I run it I get: | |
actions = { 'content_created' : lambda x : print x} | |
^ | |
SyntaxError: invalid syntax |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment