Skip to content

Commit d62bed8

Browse files
author
Matthias Koeppe
committed
Fix errors from 'sage -tox -e pycodestyle -- --ignore E402 src/sage/**/all*.py'
1 parent 3c2fd60 commit d62bed8

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

src/sage/all.py

-4
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,9 @@
5757
import operator
5858
import math
5959

60-
################ end setup warnings ###############################
61-
6260
# includes .all__sagemath_objects, .all__sagemath_environment
6361
from sage.all__sagemath_repl import *
6462

65-
###################################################################
66-
6763
# This import also sets up the interrupt handler
6864
from cysignals.signals import (AlarmInterrupt, SignalError,
6965
sig_on_reset as sig_on_count)

src/sage/all__sagemath_repl.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
############ setup warning filters before importing Sage stuff ####
1+
# Set up warning filters before importing Sage stuff
2+
23
import sys
34
import warnings
45

src/sage/combinat/all__sagemath_combinat.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@
4949
lazy_import('sage.combinat.skew_partition', ['SkewPartition', 'SkewPartitions'])
5050

5151
# Partition algebra
52-
from sage.combinat.partition_algebra import SetPartitionsAk, SetPartitionsPk, SetPartitionsTk, SetPartitionsIk, SetPartitionsBk, SetPartitionsSk, SetPartitionsRk, SetPartitionsPRk
52+
from sage.combinat.partition_algebra import (SetPartitionsAk, SetPartitionsPk,
53+
SetPartitionsTk, SetPartitionsIk,
54+
SetPartitionsBk, SetPartitionsSk,
55+
SetPartitionsRk, SetPartitionsPRk)
5356

5457
# Raising operators
5558
lazy_import('sage.combinat.partition_shifting_algebras', 'ShiftingOperatorAlgebra')

src/sage/misc/all.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
lazy_import("sage.misc.cython", "cython_compile", "cython")
2828

2929
# Following will go to all__sagemath_repl.py in #36566
30-
from sage.misc.explain_pickle import explain_pickle, unpickle_newobj, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends
30+
from sage.misc.explain_pickle import (explain_pickle, unpickle_newobj, unpickle_build,
31+
unpickle_instantiate, unpickle_persistent,
32+
unpickle_extension, unpickle_appends)
3133

3234
lazy_import('sage.misc.inline_fortran', 'fortran')
3335

0 commit comments

Comments
 (0)