Searched refs:arg_to_iter (Results 1 – 10 of 10) sorted by relevance
/dports/www/py-scrapy/Scrapy-2.5.1/tests/test_utils_misc/ |
H A D | __init__.py | 77 assert hasattr(arg_to_iter(None), '__iter__') 78 assert hasattr(arg_to_iter(100), '__iter__') 79 assert hasattr(arg_to_iter('lala'), '__iter__') 80 assert hasattr(arg_to_iter([1, 2, 3]), '__iter__') 81 assert hasattr(arg_to_iter(c for c in 'abcd'), '__iter__') 83 self.assertEqual(list(arg_to_iter(None)), []) 84 self.assertEqual(list(arg_to_iter('lala')), ['lala']) 85 self.assertEqual(list(arg_to_iter(100)), [100]) 86 self.assertEqual(list(arg_to_iter(c for c in 'abc')), ['a', 'b', 'c']) 87 self.assertEqual(list(arg_to_iter([1, 2, 3])), [1, 2, 3]) [all …]
|
/dports/www/py-scrapy/Scrapy-2.5.1/scrapy/linkextractors/ |
H A D | __init__.py | 16 from scrapy.utils.misc import arg_to_iter 76 for x in arg_to_iter(allow)] 78 for x in arg_to_iter(deny)] 80 self.allow_domains = set(arg_to_iter(allow_domains)) 81 self.deny_domains = set(arg_to_iter(deny_domains)) 83 self.restrict_xpaths = tuple(arg_to_iter(restrict_xpaths)) 85 arg_to_iter(restrict_css))) 90 self.deny_extensions = {'.' + e for e in arg_to_iter(deny_extensions)} 92 for x in arg_to_iter(restrict_text)]
|
H A D | lxmlhtml.py | 14 from scrapy.utils.misc import arg_to_iter, rel_has_nofollow 120 tags, attrs = set(arg_to_iter(tags)), set(arg_to_iter(attrs))
|
/dports/devel/py-itemloaders/itemloaders-1.0.4/itemloaders/ |
H A D | __init__.py | 13 from itemloaders.utils import arg_to_iter 115 self._values[field_name] += arg_to_iter(value) 207 value = arg_to_iter(value) 211 self._values[field_name] += arg_to_iter(processed_value) 239 value = arg_to_iter(value) 385 xpaths = arg_to_iter(xpaths) 441 csss = arg_to_iter(csss)
|
H A D | processors.py | 8 from itemloaders.utils import arg_to_iter 61 values = arg_to_iter(value) 71 next_values += arg_to_iter(func(v))
|
H A D | utils.py | 14 def arg_to_iter(arg): function
|
/dports/www/py-scrapy/Scrapy-2.5.1/scrapy/utils/ |
H A D | spider.py | 6 from scrapy.utils.misc import arg_to_iter 22 return arg_to_iter(result)
|
H A D | misc.py | 24 def arg_to_iter(arg): function
|
/dports/www/py-scrapy/Scrapy-2.5.1/scrapy/ |
H A D | mail.py | 17 from scrapy.utils.misc import arg_to_iter 68 to = list(arg_to_iter(to)) 69 cc = list(arg_to_iter(cc))
|
/dports/www/py-scrapy/Scrapy-2.5.1/scrapy/pipelines/ |
H A D | media.py | 15 from scrapy.utils.misc import arg_to_iter 87 requests = arg_to_iter(self.get_media_requests(item, info))
|