27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
diff --git a/base/exif.py b/base/exif.py
|
|
index 2b8c447..38dca63 100644
|
|
--- a/base/exif.py
|
|
+++ b/base/exif.py
|
|
@@ -798,7 +798,7 @@ class EXIF_header:
|
|
tag_name=tag_entry[0]
|
|
if len(tag_entry) != 1:
|
|
# optional 2nd tag element is present
|
|
- if isinstance(tag_entry[1], collections.Callable):
|
|
+ if isinstance(tag_entry[1], collections.abc.Callable):
|
|
# call mapping function
|
|
printable=tag_entry[1](values)
|
|
else:
|
|
diff --git a/ui5/devmgr5.py b/ui5/devmgr5.py
|
|
index 48b248f..aa911a5 100644
|
|
--- a/ui5/devmgr5.py
|
|
+++ b/ui5/devmgr5.py
|
|
@@ -1267,7 +1267,7 @@ class DevMgr5(Ui_MainWindow_Derived, Ui_MainWindow, QMainWindow):
|
|
def ActionsList_clicked(self, item):
|
|
if item is not None and self.click_lock is not item:
|
|
self.click_lock = item
|
|
- if item.cmd and isinstance(item.cmd, collections.Callable):
|
|
+ if item.cmd and isinstance(item.cmd, collections.abc.Callable):
|
|
dlg = item.cmd()
|
|
self.sendMessage('', '', EVENT_DEVICE_STOP_POLLING)
|
|
try:
|