diff options
author | necoro <> | 2007-08-07 06:09:41 +0000 |
---|---|---|
committer | necoro <> | 2007-08-07 06:09:41 +0000 |
commit | e3e2339cf2156a12b61b91f56c9ea596df57198e (patch) | |
tree | 561b195b652c5a22ac373a44d0f8501ed25508c0 /portato/helper.py | |
parent | 02652967805e1b30be1f55b73cfc50fc2ac4bbe6 (diff) | |
download | portato-e3e2339cf2156a12b61b91f56c9ea596df57198e.tar.gz portato-e3e2339cf2156a12b61b91f56c9ea596df57198e.tar.bz2 portato-e3e2339cf2156a12b61b91f56c9ea596df57198e.zip |
new threading model in gui_helper
Diffstat (limited to 'portato/helper.py')
-rw-r--r-- | portato/helper.py | 4 |
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 = [] |