From: Mao-Yining Date: Sat, 7 Feb 2026 15:28:30 +0000 (+0000) Subject: runtime(python3complete): remove trailing white space X-Git-Tag: v9.1.2140~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27630b28ad70fd97466e324f741f90ca3ef2536a;p=thirdparty%2Fvim.git runtime(python3complete): remove trailing white space related: #19354 Signed-off-by: Mao-Yining Signed-off-by: Christian Brabandt --- diff --git a/runtime/autoload/python3complete.vim b/runtime/autoload/python3complete.vim index ea0a331369..3e54433f41 100644 --- a/runtime/autoload/python3complete.vim +++ b/runtime/autoload/python3complete.vim @@ -448,7 +448,7 @@ class PyParser: def _parseassignment(self): assign='' tokentype, token, indent = self.donext() - if tokentype == tokenize.STRING or token == 'str': + if tokentype == tokenize.STRING or token == 'str': return '""' elif token == '(' or token == 'tuple': return '()' @@ -556,7 +556,7 @@ class PyParser: freshscope = True dbg("new scope: class") self.scope = self.scope.add(cls) - + elif token == 'import': imports = self._parseimportlist() for mod, alias in imports: @@ -578,7 +578,7 @@ class PyParser: elif tokentype == STRING: if freshscope: self.scope.doc(token) elif tokentype == NAME: - name,token = self._parsedotname(token) + name,token = self._parsedotname(token) if token == '=': stmt = self._parseassignment() dbg("parseassignment: %s = %s" % (name, stmt))