Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Error on this line: __new__>>+= "\0" + c #88

Open
Stoyvo opened this issue Nov 8, 2016 · 1 comment
Open

Syntax Error on this line: __new__>>+= "\0" + c #88

Stoyvo opened this issue Nov 8, 2016 · 1 comment

Comments

@Stoyvo
Copy link

Stoyvo commented Nov 8, 2016

Code being parsed:

    new = ""
    for c in orig:
        new += "\0" + c
    return new
--------------------------------------------------------------------------------
Syntax Error on this line:
        __new__>>+= "\0" + c
--------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/bin/transpile", line 1951, in <module>
    main()
  File "/usr/local/bin/transpile", line 1725, in main
    package = build(modules, base_path, datadirs=datadirs )
  File "/usr/local/bin/transpile", line 834, in build
    pyjs = python_to_pythonjs(script, go=True, module_path=module_path)
  File "<string>", line 5627, in python_to_pythonjs
  File "<string>", line 2364, in __init__
  File "<string>", line 1390, in transform_source
  File "<string>", line 1466, in parse_and_fix_code
  File "<unknown>", line 116
    __new__>>+= "\0" + c
              ^
SyntaxError: invalid syntax

(^ is under the =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Stoyvo and others