Some more refactoring

This commit is contained in:
Miroslav Stampar
2017-11-08 15:58:23 +01:00
parent 5c35aff22a
commit 58b87e4b6b
6 changed files with 13 additions and 12 deletions

View File

@@ -28,6 +28,7 @@ import sys
import tempfile
import threading
import time
import types
import urllib
import urllib2
import urlparse
@@ -3418,7 +3419,7 @@ def listToStrValue(value):
'1, 2, 3'
"""
if isinstance(value, (set, tuple)):
if isinstance(value, (set, tuple, types.GeneratorType)):
value = list(value)
if isinstance(value, list):