$ python3 testbug.py
Traceback (most recent call last):
File "testbug.py", line 5, in <module>
urls = spec.get_source_urls()
File "/usr/lib/python3.7/site-packages/rdopkg/utils/specfile.py", line 667, in get_source_urls
if len(sources) == 0:
TypeError: object of type 'filter' has no len()
The specfile
get_source_urls()
method works on Python 2, but fails on Python 3. Here's a sample script:Probably need a list comprehension here instead.