~ubuntuone-control-tower/ubuntuone-dev-tools/stable-4-2

« back to all changes in this revision

Viewing changes to ubuntuone/devtools/handlers.py

  • Committer: Rodney Dawes
  • Date: 2012-12-10 18:53:55 UTC
  • mfrom: (98.3.1 update-4-2)
  • Revision ID: rodney.dawes@canonical.com-20121210185355-tn5vb0y7g22ska20
Fix pep8 warnings that are newly presented in pep8 1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
    def check_exception(self, exception_info, *msgs):
91
91
        """Shortcut for checking exceptions."""
92
92
        for rec in self.records:
93
 
            if (rec.levelno == logging.ERROR and
94
 
                all(m in rec.exc_text + rec.message for m in msgs) and
95
 
                exception_info in rec.exc_info):
 
93
            if rec.levelno == logging.ERROR and \
 
94
                    all(m in rec.exc_text + rec.message for m in msgs) and \
 
95
                    exception_info in rec.exc_info:
96
96
                return True
97
97
        return False