8484023b7b
* Add missing import 'types' The commit 6950c04614d0bd1fc9c61b79ec7e2be0d16abdc4 did the following, but missed to import the 'types' module: - module = imp.new_module(name) + module = types.ModuleType(name) * Remove usage of 'imp' module - removed in Python 3.12 * Remove usage of deprecated method locale.getdefaultlocale() Fixes the following deprecation warning: powerline/lib/encoding.py:49: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. or locale.getdefaultlocale()[1] * Fix invalid escape sequences Specifically: powerline/bindings/config.py:179: SyntaxWarning: invalid escape sequence '\$' powerline/lint/__init__.py:208: SyntaxWarning: invalid escape sequence '\w' powerline/lint/__init__.py:226: SyntaxWarning: invalid escape sequence '\w' powerline/lint/__init__.py:44: SyntaxWarning: invalid escape sequence '\w' powerline/lint/spec.py:24: SyntaxWarning: invalid escape sequence '\w' powerline/lint/spec.py:588: SyntaxWarning: invalid escape sequence '\w' powerline/segments/common/mail.py:36: SyntaxWarning: invalid escape sequence '\d' |
||
---|---|---|
.. | ||
lib | ||
__init__.py | ||
matchers.py | ||
vim.py |