Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/ https://github.com/googleapis/google-api-python-client/blob/cd4e8f429422232dd82ef7e9bc685061d5df94a1/describe.py#L229 ``` python -Wall -m py_compile describe.py describe.py:203: DeprecationWarning: invalid escape sequence \s m = re.search('^\s+([a-zA-Z0-9_]+): (.*)', line) ```