diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2012-11-12 14:33:27 +0400 |
---|---|---|
committer | Dmitry Shachnev <mitya57@gmail.com> | 2012-11-12 14:33:27 +0400 |
commit | 76ab79df709aea2ef7a0e69c088ac051d25940a2 (patch) | |
tree | 5b2f47eb36488f2b16ce3d269db2fef2d41e8df7 /pygments | |
parent | bc1fea9cf1220e27625e0ec33c8ef9d81e8987dc (diff) | |
download | pygments-76ab79df709aea2ef7a0e69c088ac051d25940a2.tar.gz |
Removed some unused variables to fix pyflakes warnings
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/filters/__init__.py | 1 | ||||
-rw-r--r-- | pygments/formatters/other.py | 2 | ||||
-rw-r--r-- | pygments/lexers/_postgres_builtins.py | 1 |
3 files changed, 0 insertions, 4 deletions
diff --git a/pygments/filters/__init__.py b/pygments/filters/__init__.py index b816c58c..93e97563 100644 --- a/pygments/filters/__init__.py +++ b/pygments/filters/__init__.py @@ -331,7 +331,6 @@ class TokenMergeFilter(Filter): Filter.__init__(self, **options) def filter(self, lexer, stream): - output = [] current_type = None current_value = None for ttype, value in stream: diff --git a/pygments/formatters/other.py b/pygments/formatters/other.py index a19e4ce0..4b6d4c38 100644 --- a/pygments/formatters/other.py +++ b/pygments/formatters/other.py @@ -102,8 +102,6 @@ class RawTokenFormatter(Formatter): outfile.write(text.encode()) flush = outfile.flush - lasttype = None - lastval = u'' if self.error_color: for ttype, value in tokensource: line = "%s\t%r\n" % (ttype, value) diff --git a/pygments/lexers/_postgres_builtins.py b/pygments/lexers/_postgres_builtins.py index 45b3f22d..1f9918fe 100644 --- a/pygments/lexers/_postgres_builtins.py +++ b/pygments/lexers/_postgres_builtins.py @@ -41,7 +41,6 @@ def parse_keywords(f): def parse_datatypes(f): dt = set() - re_entry = re.compile('\s*<entry><type>([^<]+)</type></entry>') for line in f: if '<sect1' in line: break |