koolsb / pyblackbird

Python3 interface implementation for Monoprice Blackbird 4k 8x8 HDBaseT Matrix
MIT License
1 stars 16 forks source link

Fix invalid escape sequence DeprecationWarning #9

Closed cdce8p closed 11 months ago

cdce8p commented 1 year ago

Use raw string to fix invalid escape sequence DeprecationWarning.

  /.../pyblackbird/__init__.py:12: DeprecationWarning: invalid escape sequence '\D'
    ZONE_PATTERN_ON = re.compile('\D\D\D\s(\d\d)\D\D\d\d\s\s\D\D\D\s(\d\d)\D\D\d\d\s')
  /.../pyblackbird/__init__.py:13: DeprecationWarning: invalid escape sequence '\D'
    ZONE_PATTERN_OFF = re.compile('\D\D\DOFF\D\D\d\d\s\s\D\D\D\D\D\D\D\D\d\d\s')