summaryrefslogtreecommitdiffstats
path: root/extras/prot_filter.py
diff options
context:
space:
mode:
Diffstat (limited to 'extras/prot_filter.py')
-rwxr-xr-xextras/prot_filter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/prot_filter.py b/extras/prot_filter.py
index 0c48fd5b8e1..0e3e72cf461 100755
--- a/extras/prot_filter.py
+++ b/extras/prot_filter.py
@@ -42,7 +42,7 @@ class Translator:
def load (path):
# If it's a string, open it; otherwise, assume it's already a
# file-like object (most notably from urllib*).
- if type(path) in types.StringTypes:
+ if type(path) in (str,):
fp = file(path,"r")
else:
fp = path