Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: flake8-eyeo/flake8_eyeo.py

Issue 29375591: Issue 4882 - Renamed flake8-abp to flake8-eyeo (Closed)
Patch Set: Adapted patchconv/tox.ini Created Feb. 13, 2017, 1:11 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « flake8-eyeo/README.md ('k') | flake8-eyeo/setup.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This file is part of Adblock Plus <https://adblockplus.org/>, 1 # This file is part of Adblock Plus <https://adblockplus.org/>,
2 # Copyright (C) 2006-2016 Eyeo GmbH 2 # Copyright (C) 2006-2016 Eyeo GmbH
3 # 3 #
4 # Adblock Plus is free software: you can redistribute it and/or modify 4 # Adblock Plus is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 3 as 5 # it under the terms of the GNU General Public License version 3 as
6 # published by the Free Software Foundation. 6 # published by the Free Software Foundation.
7 # 7 #
8 # Adblock Plus is distributed in the hope that it will be useful, 8 # Adblock Plus is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(...skipping 14 matching lines...) Expand all
25 import __builtin__ as builtins 25 import __builtin__ as builtins
26 26
27 import pkg_resources 27 import pkg_resources
28 import flake8 28 import flake8
29 29
30 try: 30 try:
31 ascii 31 ascii
32 except NameError: 32 except NameError:
33 ascii = repr 33 ascii = repr
34 34
35 __version__ = pkg_resources.get_distribution('flake8-abp').version 35 __version__ = pkg_resources.get_distribution('flake8-eyeo').version
36 36
37 DISCOURAGED_APIS = { 37 DISCOURAGED_APIS = {
38 're.match': 're.search', 38 're.match': 're.search',
39 'codecs.open': 'io.open', 39 'codecs.open': 'io.open',
40 } 40 }
41 41
42 ESSENTIAL_BUILTINS = set(dir(builtins)) - {'apply', 'buffer', 'coerce', 42 ESSENTIAL_BUILTINS = set(dir(builtins)) - {'apply', 'buffer', 'coerce',
43 'intern', 'file'} 43 'intern', 'file'}
44 44
45 LEAVE_BLOCK = (ast.Return, ast.Raise, ast.Continue, ast.Break) 45 LEAVE_BLOCK = (ast.Return, ast.Raise, ast.Continue, ast.Break)
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 return [] 474 return []
475 475
476 476
477 # With flake8 3, the way the entry points are register in setup.py, 477 # With flake8 3, the way the entry points are register in setup.py,
478 # they are recognized as a group, and the name and version is detected 478 # they are recognized as a group, and the name and version is detected
479 # automatically. For compatibility with flake8 2, however, we need to 479 # automatically. For compatibility with flake8 2, however, we need to
480 # assign the name and version to each checker individually. 480 # assign the name and version to each checker individually.
481 if int(flake8.__version__.split('.')[0]) < 3: 481 if int(flake8.__version__.split('.')[0]) < 3:
482 for checker in [ASTChecker, check_non_default_encoding, 482 for checker in [ASTChecker, check_non_default_encoding,
483 check_quotes, check_redundant_parenthesis]: 483 check_quotes, check_redundant_parenthesis]:
484 checker.name = 'abp' 484 checker.name = 'eyeo'
485 checker.version = __version__ 485 checker.version = __version__
OLDNEW
« no previous file with comments | « flake8-eyeo/README.md ('k') | flake8-eyeo/setup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld