Fix warning from pylint: [C0113(unneeded-not), ] Consider changing "not lang in LANGS" to "lang not in LANGS".
--- a/py/gadict_c5.py Thu Nov 24 12:38:58 2016 +0200
+++ b/py/gadict_c5.py Fri Nov 25 10:41:07 2016 +0200
@@ -169,7 +169,7 @@
if not LANGS or len(LANGS) != 1:
FOUT.write("\n")
for (lang, tr) in sense.tr_list or []:
- if LANGS and not (lang in LANGS):
+ if LANGS and lang not in LANGS:
continue
FOUT.write(" ")
if not LANGS or len(LANGS) > 1:
@@ -178,7 +178,7 @@
FOUT.write(tr)
FOUT.write("\n")
for (lang, tr) in sense.glos_list or []:
- if LANGS and not (lang in LANGS):
+ if LANGS and lang not in LANGS:
continue
FOUT.write(" ")
if not LANGS or len(LANGS) > 1:
@@ -187,7 +187,7 @@
FOUT.write(tr)
FOUT.write("\n")
for (lang, tr) in sense.ex_list or []:
- if LANGS and not (lang in LANGS):
+ if LANGS and lang not in LANGS:
continue
FOUT.write(" ")
if not LANGS or len(LANGS) > 1: