mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
fix instances of consecutive articles (closes #23221)
Patch by Karan Goel.
This commit is contained in:
parent
38dc250521
commit
82f34ada45
14 changed files with 14 additions and 13 deletions
|
@ -35,7 +35,7 @@ class FixExitfunc(fixer_base.BaseFix):
|
|||
self.sys_import = None
|
||||
|
||||
def transform(self, node, results):
|
||||
# First, find a the sys import. We'll just hope it's global scope.
|
||||
# First, find the sys import. We'll just hope it's global scope.
|
||||
if "sys_import" in results:
|
||||
if self.sys_import is None:
|
||||
self.sys_import = results["sys_import"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue