summaryrefslogtreecommitdiff
path: root/portato/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/helper.py')
-rw-r--r--portato/helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/portato/helper.py b/portato/helper.py
index abb91f9..754f566 100644
--- a/portato/helper.py
+++ b/portato/helper.py
@@ -14,7 +14,7 @@
Some nice functions used in the program.
"""
-import types, os, signal, logging
+import os, signal, logging
debug = logging.getLogger("portatoLogger").debug
info = logging.getLogger("portatoLogger").info
@@ -66,7 +66,7 @@ def flatten (listOfLists):
@returns: flattend list
@rtype: list"""
- if type(listOfLists) != types.ListType:
+ if not isinstance(listOfLists, list):
return [listOfLists]
ret = []