Return helpers.TotalList instances on client.get_ methods

This commit is contained in:
Lonami Exo
2018-08-02 23:00:10 +02:00
parent a1837431b6
commit 7cce7aa3e4
7 changed files with 46 additions and 20 deletions

View File

@@ -10,7 +10,6 @@ import mimetypes
import os
import re
import struct
from collections import UserList
from mimetypes import guess_extension
from types import GeneratorType
@@ -603,8 +602,7 @@ def is_list_like(obj):
enough. Things like ``open()`` are also iterable (and probably many
other things), so just support the commonly known list-like objects.
"""
return isinstance(obj, (list, tuple, set, dict,
UserList, GeneratorType))
return isinstance(obj, (list, tuple, set, dict, GeneratorType))
def parse_phone(phone):