reflinks.py does not work on Python 3
$ python3 pwb.py reflinks.py -family:wikipedia -lang:en -page:User:John_Vandenberg/test_T118674 Retrieving 1 pages from wikipedia:ru. Traceback (most recent call last): File "pwb.py", line 248, in <module> if not main(): File "pwb.py", line 242, in main run_python_file(filename, [filename] + args, argvu, file_package) File "pwb.py", line 120, in run_python_file main_mod.__dict__) File ".\scripts\reflinks.py", line 824, in <module> main() File ".\scripts\reflinks.py", line 820, in main bot.run() File ".\scripts\reflinks.py", line 525, in run f = urlopen(ref.url.decode("utf8")) AttributeError: 'str' object has no attribute 'decode' <class 'AttributeError'> CRITICAL: Closing network session.
Original test case: https://ru.wikipedia.org/w/index.php?title=user:MaxBioHazard/test&oldid=74529895
Confirmed on Python 3.5 and 3.4