style: add flags for pylint
diff --git a/serial/urlhandler/protocol_hwgrep.py b/serial/urlhandler/protocol_hwgrep.py
index 824e6a8..9b3a082 100644
--- a/serial/urlhandler/protocol_hwgrep.py
+++ b/serial/urlhandler/protocol_hwgrep.py
@@ -26,11 +26,12 @@
try:
basestring
except NameError:
- basestring = str # python 3
+ basestring = str # python 3 pylint: disable=redefined-builtin
class Serial(serial.Serial):
"""Just inherit the native Serial port implementation and patch the port property."""
+ # pylint: disable=no-member
@serial.Serial.port.setter
def port(self, value):
diff --git a/serial/urlhandler/protocol_spy.py b/serial/urlhandler/protocol_spy.py
index 54bd55e..55563f9 100644
--- a/serial/urlhandler/protocol_spy.py
+++ b/serial/urlhandler/protocol_spy.py
@@ -145,6 +145,7 @@
class Serial(serial.Serial):
"""Just inherit the native Serial port implementation and patch the port property."""
+ # pylint: disable=no-member
def __init__(self, *args, **kwargs):
super(Serial, self).__init__(*args, **kwargs)