8000 Deprecation warning due to invalid escape sequences in Python 3.8 · Issue #326 · kkroening/ffmpeg-python · GitHub
[go: up one dir, main page]

Skip to content
Deprecation warning due to invalid escape sequences in Python 3.8 #326
@tirkarthi

Description

@tirkarthi

Deprecation warnings are raised due to invalid escape sequences in Python 3.8 . Below is a log of the warnings raised during compiling all the python files. Using raw strings or escaping them will fix this issue.

find . -iname '*.py'  | xargs -P 4 -I{} python -Walways -m py_compile {}
                      
./examples/split_silence.py:30: DeprecationWarning: invalid escape sequence \.
  silence_start_re = re.compile(' silence_start: (?P<start>[0-9]+(\.?[0-9]*))$')
./examples/split_silence.py:31: DeprecationWarning: invalid escape sequence \.
  silence_end_re = re.compile(' silence_end: (?P<end>[0-9]+(\.?[0-9]*)) ')
./examples/split_silence.py:33: DeprecationWarning: invalid escape sequence \.
  'size=[^ ]+ time=(?P<hours>[0-9]{2}):(?P<minutes>[0-9]{2}):(?P<seconds>[0-9\.]{5}) bitrate=')
./ffmpeg/tests/test_ffmpeg.py:33: DeprecationWarning: invalid escape sequence \:
  assert ffmpeg._utils.escape_chars('a:b', ':') == 'a\:b'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0