4226 if Preferences.getFlakes("IncludeInSyntaxCheck"): |
4226 if Preferences.getFlakes("IncludeInSyntaxCheck"): |
4227 ignoreStarImportWarnings = \ |
4227 ignoreStarImportWarnings = \ |
4228 Preferences.getFlakes("IgnoreStarImportWarnings") |
4228 Preferences.getFlakes("IgnoreStarImportWarnings") |
4229 try: |
4229 try: |
4230 txt = self.text().replace("\r\n", "\n").replace("\r", "\n") |
4230 txt = self.text().replace("\r\n", "\n").replace("\r", "\n") |
4231 warnings = Checker(txt, self.fileName) |
4231 warnings = Checker(txt, self.fileName or "(Unnamed)") |
4232 warnings.messages.sort(key = lambda a: a.lineno) |
4232 warnings.messages.sort(key = lambda a: a.lineno) |
4233 for warning in warnings.messages: |
4233 for warning in warnings.messages: |
4234 if ignoreStarImportWarnings and \ |
4234 if ignoreStarImportWarnings and \ |
4235 isinstance(warning, ImportStarUsed): |
4235 isinstance(warning, ImportStarUsed): |
4236 continue |
4236 continue |