Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax warning running dbupdater on ubuntu 20 #463

Closed
digitalarchitects opened this issue Sep 14, 2020 · 1 comment · Fixed by #451
Closed

Syntax warning running dbupdater on ubuntu 20 #463

digitalarchitects opened this issue Sep 14, 2020 · 1 comment · Fixed by #451

Comments

@digitalarchitects
Copy link

./sbin/db_updater.py:105: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if not Configuration.includesFeed(source['name']) and source['name'] is not "redis-cache-cpe":
./sbin/db_updater.py:107: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if args.f and source['name'] is not "redis-cache-cpe":
./sbin/db_updater.py:111: SyntaxWarning: "is" with a literal. Did you mean "=="?
if source['name'] is "cpeother":
./sbin/db_updater.py:114: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if source['name'] is not "redis-cache-cpe":
./sbin/db_updater.py:117: SyntaxWarning: "is" with a literal. Did you mean "=="?
if args.f and source['name'] is "cpe":
./sbin/db_updater.py:120: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif args.f and source['name'] is "cve":
./sbin/db_updater.py:129: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif (args.c is True and source['name'] is "redis-cache-cpe"):

Ran sudo ./sbin/db_updater.py -c

@P-T-I
Copy link
Member

P-T-I commented Sep 14, 2020

Absolutely True; will be fixed in PR #451. This PR will be merged once @adulau is finished testing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants