Skip to content

Commit e8afa7c

Browse files
committed
suggested details
1 parent cc81a9f commit e8afa7c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/sage/misc/cachefunc.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,9 +902,9 @@ cdef class CachedFunction():
902902
# on code objects you'll find it in co_filename and co_firstlineno)
903903
# however, this hasn't been factored out yet in sageinspect
904904
# and the logic in sage_getsourcelines is rather intricate.
905-
file_info = "File: {} (starting at line {})".format(filename, sourcelines[1])+os.linesep
905+
file_info = "File: {} (starting at line {})".format(filename, sourcelines[1]) + os.linesep
906906

907-
doc = file_info+doc
907+
doc = file_info + doc
908908
except IOError:
909909
pass
910910
return doc

src/sage/misc/randstate.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,8 +1004,7 @@ def benchmark_libc():
10041004
sage: timeit('benchmark_mt()') # random
10051005
125 loops, best of 3: 2.12 ms per loop
10061006
"""
1007-
cdef int i
1008-
for i from 0 <= i < 100000:
1007+
for _ in range(100000):
10091008
c_libc_random()
10101009

10111010

0 commit comments

Comments
 (0)