#1085749 omnidb: Python SyntaxWarning

#1085749#5
Date:
2024-10-22 11:45:17 UTC
From:
To:
Hi Maintainer

The SyntaxWarning below were emitted when this package was tested with
pipuarts[1].

Regards
Graham


[1] https://piuparts.debian.org/sid/source/o/omnidb.html


  Setting up omnidb-common (3.0.3b+ds-6) ...
  /usr/lib/python3/dist-packages/OmniDB_app/include/OmniDatabase/MariaDB.py:158:
SyntaxWarning: invalid escape sequence '\?'
    self.v_console_help = "Console tab. Type the commands in the
editor below this box. \? to view command list."
  /usr/lib/python3/dist-packages/OmniDB_app/include/OmniDatabase/MySQL.py:159:
SyntaxWarning: invalid escape sequence '\?'
    self.v_console_help = "Console tab. Type the commands in the
editor below this box. \? to view command list."
  /usr/lib/python3/dist-packages/OmniDB_app/include/OmniDatabase/Oracle.py:160:
SyntaxWarning: invalid escape sequence '\?'
    self.v_console_help = "Console tab. Type the commands in the
editor below this box. \? to view command list."
  /usr/lib/python3/dist-packages/OmniDB_app/include/OmniDatabase/PostgreSQL.py:719:
SyntaxWarning: invalid escape sequence '\?'
    self.v_console_help = "Console tab. Type the commands in the
editor below this box. \? to view command list."
  /usr/lib/python3/dist-packages/OmniDB_app/include/OmniDatabase/PostgreSQL.py:4346:
SyntaxWarning: invalid escape sequence '\%'
    if '%' not in p_textPattern.replace('\%', ''):
  /usr/lib/python3/dist-packages/OmniDB_app/include/OmniDatabase/PostgreSQL.py:8636:
SyntaxWarning: invalid escape sequence '\C'
    return self.v_connection.ExecuteScalar('''
  /usr/lib/python3/dist-packages/OmniDB_app/include/OmniDatabase/PostgreSQL.py:11839:
SyntaxWarning: invalid escape sequence '\C'
    return self.v_connection.ExecuteScalar('''
  /usr/lib/python3/dist-packages/OmniDB_app/include/Spartacus/Database.py:1802:
SyntaxWarning: invalid escape sequence '\h'
    v_title = 'Type "\h [parameter]" where "parameter" is a SQL
Command from the list below:'
  /usr/lib/python3/dist-packages/OmniDB_app/include/Spartacus/prettytable.py:72:
SyntaxWarning: invalid escape sequence '\['
    _re = re.compile("\033\[[0-9;]*m")
  /usr/lib/python3/dist-packages/OmniDB_app/include/Spartacus/prettytable.py:798:
SyntaxWarning: invalid escape sequence '\{'
    self.vertical_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")
  /usr/lib/python3/dist-packages/OmniDB_app/include/Spartacus/prettytable.py:799:
SyntaxWarning: invalid escape sequence '\{'
    self.horizontal_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")
  /usr/lib/python3/dist-packages/OmniDB_app/include/Spartacus/prettytable.py:800:
SyntaxWarning: invalid escape sequence '\{'
    self.junction_char = random.choice("~!@#$%^&*()_+|-=\{}[];':\",./;<>?")