X Tutup
Skip to content

Commit d068ff3

Browse files
fix linting
1 parent daa64e2 commit d068ff3

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ These individual tutorials expand on topics discussed in the guide above.
129129
* [Menu](api/menu.md)
130130
* [MenuItem](api/menu-item.md)
131131
* [net](api/net.md)
132-
* [netLog](api/netLog.md)
132+
* [netLog](api/net-log.md)
133133
* [powerMonitor](api/power-monitor.md)
134134
* [powerSaveBlocker](api/power-save-blocker.md)
135135
* [protocol](api/protocol.md)

docs/api/breaking-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# API Contract
22

3-
Breaking changes will be documented here, and deprecation warnings added to JS code where possible, at least [one major version](electron-versioning.md#semver) before the change is made.
3+
Breaking changes will be documented here, and deprecation warnings added to JS code where possible, at least [one major version](../tutorial/electron-versioning.md#semver) before the change is made.
44

55
# `FIXME` comments
66

script/pump.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,15 @@ def SubString(lines, start, end):
223223
return ''.join(result_lines)
224224

225225

226-
def StripMetaComments(str):
226+
def StripMetaComments(_str):
227227
"""Strip meta comments from each line in the given string."""
228228

229229
# First, completely remove lines containing nothing but a meta
230230
# comment, including the trailing \n.
231-
str = re.sub(r'^\s*\$\$.*\n', '', str)
231+
_str = re.sub(r'^\s*\$\$.*\n', '', _str)
232232

233233
# Then, remove meta comments from contentful lines.
234-
return re.sub(r'\s*\$\$.*', '', str)
234+
return re.sub(r'\s*\$\$.*', '', _str)
235235

236236

237237
def MakeToken(lines, start, end, token_type):
@@ -476,24 +476,24 @@ def ParseElseNode(tokens):
476476
def Pop(token_type=None):
477477
return PopToken(tokens, token_type)
478478

479-
next = PeekToken(tokens)
479+
_next = PeekToken(tokens)
480480
if not next:
481481
return None
482-
if next.token_type == '$else':
482+
if _next.token_type == '$else':
483483
Pop('$else')
484484
Pop('[[')
485485
code_node = ParseCodeNode(tokens)
486486
Pop(']]')
487487
return code_node
488-
elif next.token_type == '$elif':
488+
elif _next.token_type == '$elif':
489489
Pop('$elif')
490490
exp = Pop('code')
491491
Pop('[[')
492492
code_node = ParseCodeNode(tokens)
493493
Pop(']]')
494494
inner_else_node = ParseElseNode(tokens)
495495
return CodeNode([IfNode(ParseExpNode(exp), code_node, inner_else_node)])
496-
elif not next.value.strip():
496+
elif not _next.value.strip():
497497
Pop('code')
498498
return ParseElseNode(tokens)
499499
else:
@@ -511,8 +511,8 @@ def Pop(token_type=None):
511511
elif t == '$var':
512512
id_token = Pop('id')
513513
Pop('=')
514-
next = PeekToken(tokens)
515-
if next.token_type == 'exp':
514+
_next = PeekToken(tokens)
515+
if _next.token_type == 'exp':
516516
exp_token = Pop()
517517
return VarNode(id_token, ParseExpNode(exp_token))
518518
Pop('[[')

0 commit comments

Comments
 (0)
X Tutup