diff --git a/wakatime/languages/python.py b/wakatime/languages/python.py index 5a22c6d..65e9e47 100644 --- a/wakatime/languages/python.py +++ b/wakatime/languages/python.py @@ -29,8 +29,6 @@ class PythonParser(TokenParser): def _process_token(self, token, content): if self.partial(token) == 'Namespace': self._process_namespace(token, content) - elif self.partial(token) == 'Word': - self._process_word(token, content) elif self.partial(token) == 'Operator': self._process_operator(token, content) elif self.partial(token) == 'Punctuation': @@ -49,22 +47,6 @@ class PythonParser(TokenParser): else: self._process_import(token, content) - def _process_word(self, token, content): - if self.state is not None: - if self.nonpackage: - self.nonpackage = False - else: - if self.state == 'from': - self.append(content, truncate=True, truncate_to=1) - if self.state == 'from-2' and content != 'import': - self.append(content, truncate=True, truncate_to=1) - elif self.state == 'import': - self.append(content, truncate=True, truncate_to=1) - elif self.state == 'import-2': - self.append(content, truncate=True, truncate_to=1) - else: - self.state = None - def _process_operator(self, token, content): if self.state is not None: if content == '.':