Commits

pjv  committed 7dbac2e

add check for python file extension

  • Participants
  • Parent commits cfa4dd9

Comments (0)

Files changed (1)

File SetDjangoSyntax.py

 
     def on_post_save(self, view):
         self.check_syntax(view)
-      
+
 
     def check_syntax(self, view):
         self.view = view
 
         self.reset_cache_variables()
 
+        if not self.ext == '.py':
+            print "Not python file - SetDjangoSyntax exiting"
+            return
+
         if self.is_django():
             return