summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/check_crlf.py1
-rwxr-xr-xscripts/check_sources.py3
-rwxr-xr-xscripts/debug_lexer.py1
-rwxr-xr-xscripts/vim2pygments.py1
4 files changed, 1 insertions, 5 deletions
diff --git a/scripts/check_crlf.py b/scripts/check_crlf.py
index 880b496b..055446cf 100644
--- a/scripts/check_crlf.py
+++ b/scripts/check_crlf.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# -*- coding: utf-8 -*-
"""
Checker for line endings
~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/scripts/check_sources.py b/scripts/check_sources.py
index 21564415..2b79cfe6 100755
--- a/scripts/check_sources.py
+++ b/scripts/check_sources.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# -*- coding: utf-8 -*-
"""
Checker for file headers
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -188,7 +187,7 @@ def main(argv):
try:
with open(fn, 'rb') as f:
lines = f.read().decode('utf-8').splitlines()
- except (IOError, OSError) as err:
+ except OSError as err:
print("%s: cannot open: %s" % (fn, err))
num += 1
continue
diff --git a/scripts/debug_lexer.py b/scripts/debug_lexer.py
index e173d344..a76265f5 100755
--- a/scripts/debug_lexer.py
+++ b/scripts/debug_lexer.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-# -*- coding: utf-8 -*-
"""
Lexing error finder
~~~~~~~~~~~~~~~~~~~
diff --git a/scripts/vim2pygments.py b/scripts/vim2pygments.py
index 50d69bc6..2364e32a 100755
--- a/scripts/vim2pygments.py
+++ b/scripts/vim2pygments.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# -*- coding: utf-8 -*-
"""
Vim Colorscheme Converter
~~~~~~~~~~~~~~~~~~~~~~~~~