diff --git a/python3/pyinotify.py b/python3/pyinotify.py index bc24313..0bc88b9 100755 --- a/python3/pyinotify.py +++ b/python3/pyinotify.py @@ -65,6 +65,7 @@ def __init__(self, version): import logging import atexit from collections import deque +from collections import Iterable from datetime import datetime, timedelta import time import re @@ -2045,7 +2046,7 @@ def __format_param(self, param): @return: wrap param. @rtype: list of type(param) """ - if isinstance(param, list): + if isinstance(param, Iterable): for p_ in param: yield p_ else: