dbcli / cli_helpers

Python helpers for common CLI tasks
http://cli-helpers.rtfd.io/
BSD 3-Clause "New" or "Revised" License
92 stars 29 forks source link

Fix deprecation warning regarding invalid escape sequences. #59

Closed tirkarthi closed 4 years ago

tirkarthi commented 4 years ago

Description

Fix deprecation warning regarding invalid escape sequences in Python 3.7 . Fix done using https://github.com/asottile/pyupgrade

find . -iname '*.py' | grep -Ev 'example|utl|samples|deps' | xargs -P 4 -I{} python3.8 -Wall -m py_compile {} 
./tasks.py:51: DeprecationWarning: invalid escape sequence \g
  '\g<option>' if active else '', cmd)
./cli_helpers/tabular_output/output_formatter.py:124: DeprecationWarning: invalid escape sequence \*
  """Format the headers and data using a specific formatter.
./cli_helpers/tabular_output/output_formatter.py:182: DeprecationWarning: invalid escape sequence \*
  """Format output using *format_name*.
./cli_helpers/utils.py:58: DeprecationWarning: invalid escape sequence \[
  _ansi_re = re.compile('\033\[((?:\d|;)*)([a-zA-Z])')
./cli_helpers/config.py:194: DeprecationWarning: invalid escape sequence \<
  """Returns the config folder for the application.  The default behavior

Checklist

codecov[bot] commented 4 years ago

Codecov Report

Merging #59 into master will increase coverage by 1.09%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
+ Coverage   97.16%   98.25%   +1.09%     
==========================================
  Files          12       12              
  Lines         458      458              
==========================================
+ Hits          445      450       +5     
+ Misses         13        8       -5     
Impacted Files Coverage Δ
cli_helpers/config.py 100.00% <ø> (+4.50%) :arrow_up:
cli_helpers/tabular_output/output_formatter.py 100.00% <ø> (ø)
cli_helpers/utils.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2ae90b0...3c8bf35. Read the comment docs.

amjith commented 4 years ago

Thank you for the PR.

:beach_umbrella: