You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
user@workstation user % python3 ../ssi-server/ssi_expander.py site site_expanded
Traceback (most recent call last):
File "/Users/user/work/site/../ssi-server/ssi_expander.py", line 45, in <module>
process(source, dest)
File "/Users/user/work/site/../ssi-server/ssi_expander.py", line 27, in process
file(dest_path, 'w').write(ssi.InlineIncludes(src_path, "/%s" % os.path.relpath(src_path)))
Here's what I found on the internet:
The file function was removed in Python 3. In Python 3, you should use the open function instead.
Error:
Here's what I found on the internet:
The file function was removed in Python 3. In Python 3, you should use the open function instead.
open(dest_path, 'w').write(ssi.InlineIncludes(src_path, "/%s" % os.path.relpath(src_path)))
This resolves the error.
The text was updated successfully, but these errors were encountered: