mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +00:00
re was already imported in the module, no need to re-import
This commit is contained in:
parent
f261223ccd
commit
1ae2875336
1 changed files with 0 additions and 1 deletions
|
@ -353,7 +353,6 @@ else:
|
||||||
self.parser = self.feed = None # nuke circular reference
|
self.parser = self.feed = None # nuke circular reference
|
||||||
|
|
||||||
def handle_proc(self, tag, attr):
|
def handle_proc(self, tag, attr):
|
||||||
import re
|
|
||||||
m = re.search("encoding\s*=\s*['\"]([^\"']+)[\"']", attr)
|
m = re.search("encoding\s*=\s*['\"]([^\"']+)[\"']", attr)
|
||||||
if m:
|
if m:
|
||||||
self.handle_xml(m.group(1), 1)
|
self.handle_xml(m.group(1), 1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue