summaryrefslogtreecommitdiff
path: root/pygments/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/plugin.py')
-rw-r--r--pygments/plugin.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pygments/plugin.py b/pygments/plugin.py
index 213eec7c..b1085b7a 100644
--- a/pygments/plugin.py
+++ b/pygments/plugin.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
pygments.plugin
~~~~~~~~~~~~~~~
@@ -44,7 +43,7 @@ FILTER_ENTRY_POINT = 'pygments.filters'
def iter_entry_points(group_name):
try:
import pkg_resources
- except (ImportError, IOError):
+ except (ImportError, OSError):
return []
return pkg_resources.iter_entry_points(group_name)