(Arne Babenhauserheide)
2013-03-20: make pep8 happy make pep8 happy
diff --git a/wisp.py b/wisp.py --- a/wisp.py +++ b/wisp.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 + class Line: def __init__(self, line): self.continues = line.lstrip().startswith(". ") @@ -14,6 +15,7 @@ class Line: if self.content.strip() == ":": self.content = "" + def wisp2lisp(code): """Turn wisp code to lisp code.""" # first get rid of linebreaks in strings @@ -72,4 +74,3 @@ if __name__ == "__main__": with open("example.w") as f: wisp = f.read() print(wisp2lisp(wisp)) -