summaryrefslogtreecommitdiff
path: root/scripts/vim2pygments.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2020-02-29 15:45:08 +0100
committerGitHub <noreply@github.com>2020-02-29 15:45:08 +0100
commit35544e2fc6eed0ce4a27ec7285aac71ff0ddc473 (patch)
tree4390507bf0d4d5a4596cfc57c575da12f9da40f9 /scripts/vim2pygments.py
parent14fc057d300102d88a07eda5558f238d49dd23f6 (diff)
downloadpygments-git-35544e2fc6eed0ce4a27ec7285aac71ff0ddc473.tar.gz
Remove Python 2 compatibility (#1348)
* Remove Python 2 compatibility * remove 2/3 shims in pygments.util * update setup.py metadata * Remove unneeded object inheritance. * Remove unneeded future imports.
Diffstat (limited to 'scripts/vim2pygments.py')
-rwxr-xr-xscripts/vim2pygments.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/vim2pygments.py b/scripts/vim2pygments.py
index 42af0bbe..50d69bc6 100755
--- a/scripts/vim2pygments.py
+++ b/scripts/vim2pygments.py
@@ -11,8 +11,6 @@
:license: BSD, see LICENSE for details.
"""
-from __future__ import print_function
-
import sys
import re
from os import path
@@ -863,7 +861,7 @@ def find_colors(code):
return default_token, color_map
-class StyleWriter(object):
+class StyleWriter:
def __init__(self, code, name):
self.code = code