Skip to content

Commit

Permalink
suggested details
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Jun 4, 2024
1 parent cc14002 commit 04b6c8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sage/misc/sage_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -2324,8 +2324,8 @@ def _sie_format(self, sif):
sage: sie._sie_format(sif)
("{'carnivores':1, 'thinking':2, 'triumph':3}", 42)
"""
return "{%s}" %\
', '.join(sif.format(k, 0)+':'+sif.format(v, 0) for k, v in self._sie_entries), _prec_atomic
return "{%s}" % ', '.join(sif.format(k, 0) + ':' + sif.format(v, 0)
for k, v in self._sie_entries), _prec_atomic


class SIE_binary(SageInputExpression):
Expand Down
2 changes: 1 addition & 1 deletion src/sage/misc/sageinspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2216,7 +2216,7 @@ class ParentMethods:
pmatch = pat.match
# fperez - fix: sometimes, co_firstlineno can give a number larger than
# the length of lines, which causes an error. Safeguard against that.
lnum = min(obj.co_firstlineno, len(lines))-1
lnum = min(obj.co_firstlineno, len(lines)) - 1
while lnum > 0:
if pmatch(lines[lnum]):
break
Expand Down

0 comments on commit 04b6c8f

Please sign in to comment.