Skip to content

Commit edcf896

Browse files
committed
fix E222
1 parent df4e070 commit edcf896

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

src/doc/en/website/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
html_static_path = [] + html_common_static_path
2222

2323
# General information about the project.
24-
project = "Documentation"
24+
project = "Documentation"
2525

2626
# The name for this set of Sphinx documents.
2727
html_title = project
@@ -33,8 +33,8 @@
3333
# Grouping the document tree into LaTeX files. List of tuples
3434
# (source start file, target name, title, author, document class [howto/manual]).
3535
latex_documents = [
36-
('index', 'sage_documentation.tex', 'Documentation',
37-
'The Sage Development Team', 'manual'),
36+
('index', 'sage_documentation.tex', 'Documentation',
37+
'The Sage Development Team', 'manual'),
3838
]
3939

4040
# Note that this effectively replaces the index.html generated from index.rst.

src/sage_docbuild/conf.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def call_intersphinx(app, env, node, contnode):
715715
"""
716716
debug_inf(app, "???? Trying intersphinx for %s" % node['reftarget'])
717717
builder = app.builder
718-
res = intersphinx.missing_reference(
718+
res = intersphinx.missing_reference(
719719
app, env, node, contnode)
720720
if res:
721721
# Replace absolute links to $SAGE_DOC by relative links: this
@@ -737,7 +737,7 @@ def find_sage_dangling_links(app, env, node, contnode):
737737
debug_inf(app, "==================== find_sage_dangling_links ")
738738

739739
reftype = node['reftype']
740-
reftarget = node['reftarget']
740+
reftarget = node['reftarget']
741741
try:
742742
doc = node['refdoc']
743743
except KeyError:
@@ -753,17 +753,18 @@ def find_sage_dangling_links(app, env, node, contnode):
753753

754754
res = call_intersphinx(app, env, node, contnode)
755755
if res:
756-
debug_inf(app, "++ DONE %s"%(res['refuri']))
756+
debug_inf(app, "++ DONE %s" % (res['refuri']))
757757
return res
758758

759-
if node.get('refdomain') != 'py': # not a python file
759+
if node.get('refdomain') != 'py': # not a python file
760760
return None
761761

762762
try:
763763
module = node['py:module']
764-
cls = node['py:class']
764+
cls = node['py:class']
765765
except KeyError:
766-
debug_inf(app, "-- no module or class for :%s:%s"%(reftype, reftarget))
766+
debug_inf(app, "-- no module or class for :%s:%s" % (reftype,
767+
reftarget))
767768
return None
768769

769770
basename = reftarget.split(".")[0]
@@ -789,10 +790,10 @@ def find_sage_dangling_links(app, env, node, contnode):
789790
# adapted from sphinx/domains/python.py
790791
builder = app.builder
791792
searchmode = node.hasattr('refspecific') and 1 or 0
792-
matches = builder.env.domains['py'].find_obj(
793+
matches = builder.env.domains['py'].find_obj(
793794
builder.env, module, cls, newtarget, reftype, searchmode)
794795
if not matches:
795-
debug_inf(app, "?? no matching doc for %s"%newtarget)
796+
debug_inf(app, "?? no matching doc for %s" % newtarget)
796797
return call_intersphinx(app, env, node, contnode)
797798
elif len(matches) > 1:
798799
env.warn(target_module,

src/sage_setup/autogen/giacpy-mkkeywords.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@
7373
s+='\n You almost certainly want to use one of the derived class\n :class:`Pygen` instead.\n """\n\n'
7474
Mi.write(s)
7575

76-
for i in mostkeywords+moremethods:
76+
for i in mostkeywords + moremethods:
7777
p = Popen(["cas_help", i], stdout=PIPE, stderr=PIPE, universal_newlines=True)
7878
doc = p.communicate()[0]
7979

8080
doc = doc.replace("\n", "\n ") # Indent doc
81-
s = " def "+i+"(self,*args):\n"
82-
s += " r'''From Giac's documentation:\n "+doc+"\n '''\n"
83-
s += " return GiacMethods['"+i+"'](self,*args)\n\n"
81+
s = " def " + i + "(self,*args):\n"
82+
s += " r'''From Giac's documentation:\n " + doc + "\n '''\n"
83+
s += " return GiacMethods['" + i + "'](self,*args)\n\n"
8484
Mi.write(s)
8585

8686
Mi.close()

0 commit comments

Comments
 (0)