This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
from __future__
in the main file causes SyntaxError
#57
Comments
Can you please link to your exact source code? I have code specifically to handle future imports ( subpar/compiler/python_archive.py Line 163 in b1b6bd1
See original issue #4 |
This is the source I'm trying: |
Aha, I did not realize that doc comments were allowed before future imports. Should be an easy fix, although I'm travelling so it will be a little while. Note to self, the documented semantics of future imports: https://docs.python.org/2/reference/simple_stmts.html#future |
duggelz
pushed a commit
that referenced
this issue
Jan 17, 2018
duggelz
pushed a commit
that referenced
this issue
Jan 29, 2018
It seems like this was fixed in #67 and can be closed, right? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If the main python script contains
from __future__ import ...
statements, running par file causes the following error:This seems to be due to the boilerplate added by subpar compiler before the
__future
statements.:The text was updated successfully, but these errors were encountered: