-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
Add # -*- coding: utf-8 -*- to the top of all SageNB .py files #8000
Comments
comment:1
Minh -- Is this OK? Shall we make another ticket to update the whole Sage library? |
comment:3
Replying to @qed777:
I'm not sure about this, although I can clearly see the benefit of it. On the one hand, this could be further discouragement to people who want to start with Sage development. Could you send an email to sage-devel polling people about this issue? I mean something along the line of, "Should each source file have the character encoding preamble # -- coding: utf-8 -- ?". Also see #7999 relating to one file in the Sage library. |
This comment has been minimized.
This comment has been minimized.
comment:4
Actually, it seems that |
comment:5
Perhaps a different coding slipped in? |
This adds the coding directive |
comment:7
Attachment: trac_8000-utf-8-coding-directive.patch.gz This patch should do the trick. |
Author: Tim Dumol |
comment:8
Replying to @TimDumol:
It does, indeed. V2 also fixes a failed doctest in |
Reviewer: Mitesh Patel |
Fix failed doctest. Replaces previous. sagenb repo. |
Attachment: trac_8000-utf-8-coding-directive.2.patch.gz Attachment: trac_8000-utf-8-coding-directive.3.patch.gz Rebased for SageNB 0.6 + queue in comment. Replaces previous. |
comment:9
V3 is rebased for this queue (patch version numbers may be off by one):
|
Merged: sagenb-0.7 |
Adding the pragma now to all Python files in SageNB may prevent some of the increasingly common docbuild errors raised when we build the reference manual.
CC: @TimDumol @sagetrac-mvngu
Component: notebook
Author: Tim Dumol
Reviewer: Mitesh Patel
Merged: sagenb-0.7
Issue created by migration from https://trac.sagemath.org/ticket/8000
The text was updated successfully, but these errors were encountered: