amoffat/pbs — Issue #24: SyntaxError with python3
Author: dktrkranz
Created: 2012-02-01 21:54:28+00:00
State: open

I got a SyntaxError trying to import pbs from python3:

$ python3 -m pbs
Traceback (most recent call last):
File "/usr/lib/python3.2/runpy.py", line 140, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
File "/usr/lib/python3.2/runpy.py", line 114, in _get_module_details
code = loader.get_code(mod_name)
File "/usr/lib/python3.2/pkgutil.py", line 281, in get_code
self.code = compile(source, self.filename, 'exec')
File "/home/dktrkranz/pack/py/pbs-0.7/pbs.py", line 183
else: return u""
^
SyntaxError: invalid syntax
$