Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Lib/_markupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _parse_doctype_subset(self, i, declstartpos):
if (j + 1) == n:
# end of buffer; incomplete
return -1
s, j = self._scan_name(j + 1, declstartpos)
_, j = self._scan_name(j + 1, declstartpos)
if j < 0:
return j
if rawdata[j] == ";":
Expand Down Expand Up @@ -286,7 +286,7 @@ def _parse_doctype_attlist(self, i, declstartpos):
# end of buffer, incomplete
return -1
else:
name, j = self._scan_name(j, declstartpos)
_, j = self._scan_name(j, declstartpos)
c = rawdata[j:j+1]
if not c:
return -1
Expand All @@ -303,7 +303,7 @@ def _parse_doctype_attlist(self, i, declstartpos):
if rawdata[j:] == "#":
# end of buffer
return -1
name, j = self._scan_name(j + 1, declstartpos)
_, j = self._scan_name(j + 1, declstartpos)
if j < 0:
return j
c = rawdata[j:j+1]
Expand Down
4 changes: 2 additions & 2 deletions Lib/idlelib/multicall.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def __init__(self, type, widget, widgetinst):
self.typename = _types[type][0]
self.widget = widget
self.widgetinst = widgetinst
self.bindedfuncs = {None: [[] for s in _states]}
self.bindedfuncs = {None: [[] for _ in _states]}
self.handlerids = []
# we don't want to change the lists of functions while a handler is
# running - it will mess up the loop and anyway, we usually want the
Expand All @@ -212,7 +212,7 @@ def __init__(self, type, widget, widgetinst):

def bind(self, triplet, func):
if triplet[2] not in self.bindedfuncs:
self.bindedfuncs[triplet[2]] = [[] for s in _states]
self.bindedfuncs[triplet[2]] = [[] for _ in _states]
for s in _states:
lists = [ self.bindedfuncs[detail][i]
for detail in (triplet[2], None)
Expand Down
2 changes: 1 addition & 1 deletion Lib/idlelib/searchengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def search_backward(self, text, prog, line, col, wrap, ok=0):
wrapped = 1
wrap = 0
pos = text.index("end-1c")
line, col = map(int, pos.split("."))
line = int(pos.split(".")[0])
chars = text.get("%d.0" % line, "%d.0" % (line+1))
col = len(chars) - 1
return None
Expand Down
2 changes: 1 addition & 1 deletion Lib/turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -4092,7 +4092,7 @@ def demo1():
write("start", 1)
color("red")
# staircase
for i in range(5):
for _ in range(5):
forward(20)
left(90)
forward(20)
Expand Down
Loading