dbcli / pgspecial

Python implementation of postgres meta commands (backslash commands)
BSD 3-Clause "New" or "Revised" License
74 stars 54 forks source link

Fix SyntaxWarning with Python 3.12 #145

Closed sryze closed 10 months ago

sryze commented 10 months ago

Description

When using Python 3.12, e.g. when installing via Homebrew with the latest Python installed, I get this warning:

pgspecial/main.py:237: SyntaxWarning: invalid escape sequence '\w'

It also displays every time I run pgcli --version.

Checklist

codecov-commenter commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (main@b3abb95). Click here to learn what that means.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #145 +/- ## ======================================= Coverage ? 67.45% ======================================= Files ? 6 Lines ? 1220 Branches ? 0 ======================================= Hits ? 823 Misses ? 397 Partials ? 0 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

j-bennet commented 10 months ago

👍 thank you @sryze , nice catch.