forked from mutantmonkey/phenny
-
Notifications
You must be signed in to change notification settings - Fork 42
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
.awikstats crashes #600
Comments
It's a syntax warning introduced in Py 3.8. Shouldn't be fatal given that
it's a warning rather than an error?
…On Sun, Aug 8, 2021, 9:51 AM Jonathan Washington ***@***.***> wrote:
In response to (12:48:58) firespeaker: .awikstats update alt:
(12:49:06) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:87: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:08) begiak: for countName in sorted(fileCounts.keys(), key=lambda countName: (fileCounts[countName] and fileCounts[countName][0] is 0, countName)):
(12:49:09) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:98: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:10) begiak: if count is 0:
(12:49:12) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:106: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:13) begiak: if count is 0:
(12:49:14) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:137: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:16) begiak: for countName in sorted(fileCounts.keys(), key=lambda countName: (fileCounts[countName] and fileCounts[countName][0] is 0, countName)):
(12:49:18) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:169: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:20) begiak: for countName in sorted(fileCounts.keys(), key=lambda countName: (fileCounts[countName] and fileCounts[countName][0] is 0, countName)):
(12:49:22) begiak: /home/begiak/phenny/apertium_wikistats_bot.py:381: SyntaxWarning: "is" with a literal. Did you mean "=="?
(12:49:22) begiak: if len(fileCounts) is 0:
(12:49:23) begiak: INFO:root:Login as ***@***.*** succeeded
(12:49:28) begiak: INFO:root:Acquired file counts {'vanilla stems': ('284', ('https://raw.githubusercontent.com/apertium/apertium-alt/83eba775c8b921c1faee542de7e12b8404c18d01/apertium-alt.alt.lexc', 'jonorthwash', '83eba7'), 'https://raw.githubusercontent.com/apertium/apertium-alt/master/apertium-alt.alt.lexc'), 'stems': ('284',
(12:49:33) begiak: ('https://raw.githubusercontent.com/apertium/apertium-alt/83eba775c8b921c1faee542de7e12b8404c18d01/apertium-alt.alt.lexc', 'jonorthwash', '83eba7'), 'https://raw.githubusercontent.com/apertium/apertium-alt/master/apertium-alt.alt.lexc'), 'rules': ('2', ('https://raw.githubusercontent.com/apertium/apertium-alt/b8dab8fdf110d6aa23d7dab7053fdee9e018a1cc/apertium-alt.alt.rlx', 'jonorthwash', 'b8dab8'),
(12:49:35) begiak: 'https://raw.githubusercontent.com/apertium/apertium-alt/master/apertium-alt.alt.rlx')}
(12:49:36) begiak: INFO:root:Update of page Apertium-alt/stats succeeded (https://wiki.apertium.org/wiki/Apertium-alt/stats)
This appears to be a syntax error in the code (!?).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#600>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABAEI7X5ZVM4C7XWIUBRJBLT32Y2PANCNFSM5BYU52DA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Yeah, seemed to work despite that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In response to
(12:48:58) firespeaker: .awikstats update alt
:This appears to be a series of syntax errors in the code (!?).
The text was updated successfully, but these errors were encountered: