Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcclauss <cclauss@bluewin.ch>2018-04-17 23:03:20 +0300
committerJames Payne <jepayne1138@gmail.com>2018-05-16 22:28:51 +0300
commit24974b07ba7fabcc9c93fbf5bcb7aa0ac6e69c04 (patch)
tree6584193ac280f999df3487970db9bf36861bcb8b /linter_plugin.py
parent41e1976c178dac8875584e8f11d68e28515e0a01 (diff)
Safer to pylint on Python 3
Diffstat (limited to 'linter_plugin.py')
-rw-r--r--linter_plugin.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/linter_plugin.py b/linter_plugin.py
index 4938755cf..85896a36b 100644
--- a/linter_plugin.py
+++ b/linter_plugin.py
@@ -9,6 +9,8 @@ from astroid import nodes
def register(unused_linter):
"""Register this module as PyLint plugin."""
+ pass
+
def _transform(cls):
# fix the "no-member" error on instances of
@@ -17,9 +19,9 @@ def _transform(cls):
# TODO: this is too broad and applies to any tested class...
- if cls.slots() is not None:
- for slot in cls.slots():
- cls.locals[slot.value] = [nodes.EmptyNode()]
+ #if cls.slots() is not None:
+ # for slot in cls.slots():
+ # cls.locals[slot.value] = [nodes.EmptyNode()]
if cls.name == 'JSONObjectWithFields':
# _fields is magically introduced by JSONObjectWithFieldsMeta