Commits

Takeshi Komiya  committed 6fe3921

Fix flake8 violations

  • Participants
  • Parent commits 58667e2

Comments (0)

Files changed (2)

+[egg_info]
+;tag_build = dev
+
+[build]
+build-base = _build
+
+[sdist]
+formats = gztar
+
+[flake8]
+max_line_length=100
+ignore=_
+exclude=src/phply/

File src/sphinxcontrib_phpautodoc.py

 import os
 import re
 import codecs
+import pickle
 from phply import phpast as ast
 from phply.phplex import lexer
 from phply.phpparse import parser
 
 class AutodocCache(object):
     def parse_code(self, filename):
-        import pickle
-        from phply.phplex import lexer
-        from phply.phpparse import parser
-
         basedir = self.state.document.settings.env.doctreedir
         cachename = os.path.join(basedir, basename(filename, 'parse'))
         if is_same_mtime(filename, cachename):