The latest release of flake8 updates to pyflakes 2.1, and with that
comes an expectation that typical variable equality comparisons
should avoid the use of "is" and "is not" for safety. Adjust a
couple places we previously ran afoul of the new F632 check.
def authenticate(self):
"""Flag the user as authenticated and disconnect duplicates."""
def authenticate(self):
"""Flag the user as authenticated and disconnect duplicates."""
- if self.state is not "authenticated":
+ if self.state != "authenticated":
self.authenticated = True
if ("mudpy.limit" in universe.contents and self.account.subkey in
universe.contents["mudpy.limit"].get("admins")):
self.authenticated = True
if ("mudpy.limit" in universe.contents and self.account.subkey in
universe.contents["mudpy.limit"].get("admins")):
conversant].read_very_eager().decode("utf-8")
except Exception:
pass
conversant].read_very_eager().decode("utf-8")
except Exception:
pass
tlog("\nERROR: luser%s did not receive expected string:\n\n"
"%s\n\n"
"Check the end of capture_%s.log for received data."
tlog("\nERROR: luser%s did not receive expected string:\n\n"
"%s\n\n"
"Check the end of capture_%s.log for received data."