Skip to content

Commit

Permalink
qtpy: retain Python2 compatibility
Browse files Browse the repository at this point in the history
The PY2 code path needs to import Callable and MutableMapping so that
the qtpy.compat imports work correctly on Python2.

Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Nov 20, 2021
1 parent 1b6aca1 commit 57eb557
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qtpy/py3compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
if PY2:
# Python 2
import __builtin__ as builtins
from collections import Callable, MutableMapping
import ConfigParser as configparser
try:
import _winreg as winreg
Expand Down

0 comments on commit 57eb557

Please sign in to comment.