Skip to content

Commit cdbae68

Browse files
author
Release Manager
committed
gh-35413: fixing some pep8 E303 (folders before l* and after t*) <!-- Please provide a concise, informative and self-explanatory title. --> <!-- Don't put issue numbers in the title. Put it in the Description below. --> <!-- For example, instead of "Fixes #12345", use "Add a new method to multiply two integers" --> ### 📚 Description fixing a few more pep8 E303 warning in folders with name starting with a letter either in [a-l] or [t-z] E303 too many blank lines <!-- Describe your changes here in detail. --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes #12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #35413 Reported by: Frédéric Chapoton Reviewer(s): Matthias Köppe
2 parents 2fc44c9 + 1e6a9e0 commit cdbae68

21 files changed

+11
-71
lines changed

src/sage/categories/simplicial_sets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""
22
Simplicial Sets
33
"""
4-
#*****************************************************************************
4+
# ****************************************************************************
55
# Copyright (C) 2015 John H. Palmieri <palmieri at math.washington.edu>
66
#
77
# Distributed under the terms of the GNU General Public License (GPL)
8-
# http://www.gnu.org/licenses/
9-
#******************************************************************************
8+
# https://www.gnu.org/licenses/
9+
# *****************************************************************************
1010

1111
from sage.misc.cachefunc import cached_method
1212
from sage.categories.category_singleton import Category_singleton
@@ -16,6 +16,7 @@
1616
from sage.rings.infinity import Infinity
1717
from sage.rings.integer import Integer
1818

19+
1920
class SimplicialSets(Category_singleton):
2021
r"""
2122
The category of simplicial sets.
@@ -384,7 +385,6 @@ def _universal_cover_dict(self):
384385
char[e] = G.one()
385386
return (G, char)
386387

387-
388388
def universal_cover_map(self):
389389
r"""
390390
Return the universal covering map of the simplicial set.

src/sage/graphs/generic_graph.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,6 @@ def __eq__(self, other):
615615

616616
return self._backend.is_subgraph(other._backend, self, ignore_labels=not self.weighted())
617617

618-
619618
def _use_labels_for_hash(self):
620619
r"""
621620
Helper method for method ``__hash__``.
@@ -648,7 +647,6 @@ def _use_labels_for_hash(self):
648647
self._hash_labels = self.weighted()
649648
return self._hash_labels
650649

651-
652650
@cached_method
653651
def __hash__(self):
654652
"""

src/sage/groups/braid.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,6 @@ def annular_khovanov_homology(self, qagrad=None, ring=IntegerRing()):
14671467
return {qa: C[qa].homology() for qa in C}
14681468
return self.annular_khovanov_complex(qagrad, ring).homology()
14691469

1470-
14711470
@cached_method
14721471
def left_normal_form(self, algorithm='libbraiding'):
14731472
r"""
@@ -1867,7 +1866,6 @@ def pure_conjugating_braid(self, other):
18671866
n2 = len(b2.Tietze())
18681867
return b2 if n2 <= n0 else b0
18691868

1870-
18711869
def ultra_summit_set(self):
18721870
"""
18731871
Return a list with the orbits of the ultra summit set of ``self``

src/sage/knots/knotinfo.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@
239239
##############################################################################
240240

241241

242-
243242
from enum import Enum
244243
from sage.misc.cachefunc import cached_method
245244
from sage.misc.sage_eval import sage_eval
@@ -251,8 +250,6 @@
251250
from sage.databases.knotinfo_db import KnotInfoColumns, db
252251

253252

254-
255-
256253
def eval_knotinfo(string, locals={}, to_tuple=True):
257254
r"""
258255
Preparse a string from the KnotInfo database and evaluate it by ``sage_eval``.
@@ -301,7 +298,6 @@ def knotinfo_bool(string):
301298
raise ValueError('%s is not a KnotInfo boolean')
302299

303300

304-
305301
# ---------------------------------------------------------------------------------
306302
# KnotInfoBase
307303
# ---------------------------------------------------------------------------------
@@ -447,7 +443,6 @@ def _braid_group(self):
447443
else:
448444
return BraidGroup(n)
449445

450-
451446
@cached_method
452447
def _homfly_pol_ring(self, var1, var2):
453448
r"""
@@ -1159,7 +1154,6 @@ def is_oriented(self):
11591154
"""
11601155
return not knotinfo_bool(self[self.items.unoriented])
11611156

1162-
11631157
@cached_method
11641158
def homfly_polynomial(self, var1='v', var2='z', original=False):
11651159
r"""
@@ -1345,7 +1339,6 @@ def kauffman_polynomial(self, var1='a', var2='z', original=False):
13451339
lc = {'a': a, 'z': z}
13461340
return R(eval_knotinfo(kauffman_polynomial, locals=lc))
13471341

1348-
13491342
@cached_method
13501343
def jones_polynomial(self, variab=None, skein_normalization=False, puiseux=False, original=False, use_sqrt=False):
13511344
r"""
@@ -1534,10 +1527,8 @@ def jones_polynomial(self, variab=None, skein_normalization=False, puiseux=False
15341527
else:
15351528
lc = {'x': t}
15361529

1537-
15381530
return R(eval_knotinfo(jones_polynomial, locals=lc))
15391531

1540-
15411532
@cached_method
15421533
def alexander_polynomial(self, var='t', original=False, laurent_poly=False):
15431534
r"""
@@ -1958,7 +1949,6 @@ def link(self, use_item=db.columns().pd_notation, snappy=False):
19581949

19591950
raise ValueError('Link construction using %s not possible' %use_item)
19601951

1961-
19621952
@cached_method
19631953
def is_unique(self):
19641954
r"""
@@ -2170,7 +2160,6 @@ def diagram(self, single=False, new=0, autoraise=True):
21702160
else:
21712161
return webbrowser.open(filename.diagram_url(self[self.items.name]), new=new, autoraise=autoraise)
21722162

2173-
21742163
def knot_atlas_webpage(self, new=0, autoraise=True):
21752164
r"""
21762165
Launch the Knot Atlas web-page for ``self``.
@@ -2212,7 +2201,6 @@ def knotilus_webpage(self, new=0, autoraise=True):
22122201
return webbrowser.open(self[self.items.knotilus_page_anon], new=new, autoraise=autoraise)
22132202

22142203

2215-
22162204
# --------------------------------------------------------------------------------------------
22172205
# KnotInfoSeries
22182206
# --------------------------------------------------------------------------------------------
@@ -2256,7 +2244,6 @@ class KnotInfoSeries(UniqueRepresentation, SageObject):
22562244
True
22572245
"""
22582246

2259-
22602247
def __init__(self, crossing_number, is_knot, is_alternating, name_unoriented=None):
22612248
r"""
22622249
Python constructor.
@@ -2363,7 +2350,6 @@ def list(self, oriented=False, comp=None, det=None, homfly=None):
23632350
res.append(KnotInfoSeries(cross_nr, is_knot, is_alt, curr_n_unori))
23642351
return res
23652352

2366-
23672353
@cached_method
23682354
def lower_list(self, oriented=False, comp=None, det=None, homfly=None):
23692355
r"""
@@ -2408,7 +2394,6 @@ def lower_list(self, oriented=False, comp=None, det=None, homfly=None):
24082394
l = LS.lower_list(oriented=oriented, comp=comp, det=det, homfly=homfly)
24092395
return l + self.list(oriented=oriented, comp=comp, det=det, homfly=homfly)
24102396

2411-
24122397
def __repr__(self):
24132398
r"""
24142399
Return the representation string of ``self``.
@@ -2426,7 +2411,6 @@ def __repr__(self):
24262411
else:
24272412
return 'Series of links %s' %(self._name())
24282413

2429-
24302414
def __getitem__(self, item):
24312415
r"""
24322416
Return the given ``item`` from the list of ``self``
@@ -2586,7 +2570,6 @@ def _test_recover(self, **options):
25862570
else:
25872571
tester.assertTrue(self.is_recoverable(unique=False))
25882572

2589-
25902573
def inject(self, verbose=True):
25912574
r"""
25922575
Inject ``self`` with its name into the namespace of the

src/sage/knots/link.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3612,7 +3612,6 @@ def delta(u, v):
36123612
ims += sum(line(a[0], **kwargs) for a in im)
36133613
return image
36143614

3615-
36163615
def _markov_move_cmp(self, braid):
36173616
r"""
36183617
Return whether ``self`` can be transformed to the closure of ``braid``
@@ -4083,7 +4082,6 @@ def answer_list(l):
40834082

40844083
raise NotImplementedError('this link cannot be uniquely determined%s' %non_unique_hint)
40854084

4086-
40874085
self_m = self.mirror_image()
40884086
ls, proved_s = self._knotinfo_matching_list()
40894087
lm, proved_m = self_m._knotinfo_matching_list()
@@ -4130,7 +4128,6 @@ def answer_list(l):
41304128

41314129
return answer_list(l)
41324130

4133-
41344131
def is_isotopic(self, other):
41354132
r"""
41364133
Check whether ``self`` is isotopic to ``other``.

src/sage/libs/eclib/interface.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ def set_verbose(self, verbose):
194194
"""
195195
self.__verbose = verbose
196196

197-
198197
def _curve_data(self):
199198
r"""
200199
Returns the underlying :class:`_Curvedata` class for this mwrank elliptic curve.

src/sage/libs/gap/all_documented_functions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@
1414
sage: List(_, Order)
1515
[ 2, 4, 2 ]
1616
"""
17-
1817
from sage.libs.gap.libgap import libgap
1918
from sage.libs.gap.assigned_names import FUNCTIONS as _FUNCTIONS
2019

2120

22-
2321
for _f in _FUNCTIONS:
2422
globals()[_f] = libgap.function_factory(_f)

src/sage/libs/gap/gap_functions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
# Distributed under the terms of the GNU General Public License (GPL)
88
# as published by the Free Software Foundation; either version 2 of
99
# the License, or (at your option) any later version.
10-
# http://www.gnu.org/licenses/
10+
# https://www.gnu.org/licenses/
1111
###############################################################################
1212

1313

14-
1514
# selected gap functions to use in tab completion
1615
common_gap_functions = set([
1716
'AbelianGroup',

src/sage/logic/logic.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,9 @@ def combine(self, statement1, statement2):
326326
var_order = statement1[2] + statement2[2]
327327
return [toks, variables, var_order]
328328

329-
330-
#TODO: implement the simplify function which calls
331-
#a c++ implementation of the ESPRESSO algorithm
332-
#to simplify the truthtable: probably Minilog
329+
# TODO: implement the simplify function which calls
330+
# a c++ implementation of the ESPRESSO algorithm
331+
# to simplify the truthtable: probably Minilog
333332
def simplify(self, table):
334333
"""
335334
Call a C++ implementation of the ESPRESSO algorithm to simplify the

src/sage/numerical/linear_tensor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,11 @@ def LinearTensorParent(free_module_parent, linear_functions_parent):
181181
return LinearTensorParent_class(free_module_parent, linear_functions_parent)
182182

183183

184-
185-
#*****************************************************************************
184+
# ****************************************************************************
186185
#
187186
# Parent of linear functions tensored with a free module
188187
#
189-
#*****************************************************************************
188+
# ****************************************************************************
190189

191190
class LinearTensorParent_class(Parent):
192191
r"""

0 commit comments

Comments
 (0)