Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1040290: python3-mysql.connector: SyntaxWarning during package installation

18 views
Skip to first unread message

Andreas Beckmann

unread,
Jul 4, 2023, 2:00:04 AM7/4/23
to
Package: python3-mysql.connector
Version: 8.0.15-3
Severity: important
User: debi...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package emits a SyntaxWarning
during installation:

Setting up python3-mysql.connector (8.0.15-3) ...
/usr/lib/python3/dist-packages/mysqlx/expr.py:972: SyntaxWarning: "is" with a literal. Did you mean "=="?
return "({0})".format(dimension[0]) if len(dimension) is 1 else \
/usr/lib/python3/dist-packages/mysqlx/statement.py:122: SyntaxWarning: "is" with a literal. Did you mean "=="?
return (default_schema if len(temp) is 1 else temp[0].strip(quote),


Andreas

Santiago Vila

unread,
Sep 8, 2023, 6:10:05 PM9/8/23
to
tags 1040290 + patch
thanks

El 4/7/23 a las 7:47, Andreas Beckmann escribió:
Hello. This happened to me yesterday so I'm glad it's already reported.

Trivial patch attached, as suggested by the warning message.

Thanks.
mysql-connector-python.diff.txt
0 new messages