Hello,
When I run this script[1] on my own machine it runs without any problem. When I run it on Labs, I get an invalid syntax error, pasted below. Can you please help me figure out why?
Thanks!
(venv)tools.huji@tools-bastion-03:~$ python core/pwb.py webcite -page:"SOME PAGE" Traceback (most recent call last): File "core/pwb.py", line 253, in <module> if not main(): File "core/pwb.py", line 246, in main run_python_file(filename, [filename] + args, argvu, file_package) File "core/pwb.py", line 114, in run_python_file exec(compile(source, filename, "exec", dont_inherit=True), File "core/scripts/userscripts/webcite.py", line 125 faCitationPattern = ur'{{\s*یادکرد(?:{{.*?}}|.)*?}}'
[1] https://github.com/PersianWikipedia/fawikibot/blob/master/webcite.py