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

Fix for Python 3.7 #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fabrice102
Copy link

Python 3.7 does not support mode rU
(= universal newlines mode, see https://docs.python.org/3.6/library/functions.html#open)

Without this fix, we get the following error with Python 3.11:

$ scons
scons: Reading SConscript files ...
ValueError: invalid mode: 'rU':
  File "[...]/git-projects/pplatex/SConstruct", line 15:
    LoadReleaseFile(env, 'RELEASE')
  File "[...]/git-projects/pplatex/site_scons/confighelper.py", line 49:
    rfile = open( filename, "rU" )

Python 3.7 does not support mode rU
(= universal newlines mode, see https://docs.python.org/3.6/library/functions.html#open)
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

Successfully merging this pull request may close these issues.

1 participant