~henninge/pocket-lint/bug-776389-pep-0263-encoding

« back to all changes in this revision

Viewing changes to pocketlint/formatcheck.py

  • Committer: Henning Eggers
  • Date: 2011-05-04 14:47:22 UTC
  • Revision ID: henning@canonical.com-20110504144722-88zm2bk5kc186k6o
Check text first and let it set the encoding.

Show diffs side-by-side

added added

removed removed

Lines of Context:
460
460
        """Check the syntax of the python code."""
461
461
        if self.text == '':
462
462
            return
 
463
        self.check_text()
463
464
        self.check_flakes()
464
465
        self.check_pep8()
465
 
        self.check_text()
466
466
 
467
467
    def check_flakes(self):
468
468
        """Check compilation and syntax."""