remove unused python token parser method
This commit is contained in:
parent
beca130634
commit
694205ebee
4 changed files with 4 additions and 6 deletions
|
@ -49,9 +49,7 @@ class PythonParser(TokenParser):
|
|||
self._process_import(token, content)
|
||||
|
||||
def _process_operator(self, token, content):
|
||||
if self.state is not None:
|
||||
if content == '.':
|
||||
self.nonpackage = True
|
||||
pass
|
||||
|
||||
def _process_punctuation(self, token, content):
|
||||
if content == '(':
|
||||
|
|
|
@ -234,7 +234,7 @@ def get_file_head(file_name):
|
|||
except:
|
||||
try:
|
||||
with open(file_name, 'r', encoding=sys.getfilesystemencoding()) as fh:
|
||||
text = fh.read(512000)
|
||||
text = fh.read(512000) # pragma: nocover
|
||||
except:
|
||||
log.traceback('debug')
|
||||
return text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue