]> Devi Nivas Git - chevron.git/commitdiff
Changed sys import to just import argv
authornoah morrison <noah@morrison.ph>
Fri, 31 Oct 2014 19:38:23 +0000 (15:38 -0400)
committernoah morrison <noah@morrison.ph>
Fri, 31 Oct 2014 19:38:23 +0000 (15:38 -0400)
chevron.py

index 7bd588d1be253bafe7a3452bc9d56bc18160e5e5..d2482354626bba30092047bcddb37c14ddbfc921 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 
-import sys
+from sys import argv
 
 
 def tokenize(template):
@@ -81,8 +81,8 @@ def tokenize(template):
 
 
 if __name__ == '__main__':
-    data = sys.argv[1]
-    template = sys.argv[2]
+    data = argv[1]
+    template = argv[2]
 
     with open(template, 'r') as f:
         template = f.read()