Abhilash Raj pushed to branch master at GNU Mailman / Mailman Core


Commits:
9d0aba66 by Abhilash Raj at 2020-06-13T05:57:29+00:00
Comparisons with literal should use `==`.

- - - - -
359a0595 by Abhilash Raj at 2020-06-13T05:57:29+00:00
Merge branch 'fix-warnings' into 'master'

Comparisons with literal should use `==`.

Closes #722

See merge request mailman/mailman!660
- - - - -


1 changed file:

- src/mailman/rest/validator.py


Changes:

=====================================
src/mailman/rest/validator.py
=====================================
@@ -106,7 +106,7 @@ def list_of_strings_validator(values):
     # bug where an empty string ('') would be interpreted as a valid value ['']
     # to create a singleton list, instead of empty list, which in later stages
     # would create other problems.
-    if values is '':  # noqa: F632
+    if values == '':
         return []
     if not isinstance(values, (list, tuple)):
         values = [values]



View it on GitLab: 
https://gitlab.com/mailman/mailman/-/compare/766c2fefd96a40192b4d46d17b3881b6dba08e02...359a059588f9e6e145420bf19fb924d9b9d7e17c

-- 
View it on GitLab: 
https://gitlab.com/mailman/mailman/-/compare/766c2fefd96a40192b4d46d17b3881b6dba08e02...359a059588f9e6e145420bf19fb924d9b9d7e17c
You're receiving this email because of your account on gitlab.com.


_______________________________________________
Mailman-checkins mailing list -- mailman-checkins@python.org
To unsubscribe send an email to mailman-checkins-le...@python.org
https://mail.python.org/mailman3/lists/mailman-checkins.python.org/
Member address: arch...@jab.org

Reply via email to