summaryrefslogtreecommitdiffstats
path: root/Lib/ConfigParser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/ConfigParser.py')
-rw-r--r--Lib/ConfigParser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py
index 7e30f73..435e60d 100644
--- a/Lib/ConfigParser.py
+++ b/Lib/ConfigParser.py
@@ -83,7 +83,7 @@ ConfigParser -- responsible for for parsing a list of
write the configuration state in .ini format
"""
-import string, types
+import types
import re
__all__ = ["NoSectionError","DuplicateSectionError","NoOptionError",
@@ -223,7 +223,7 @@ class ConfigParser:
configuration files in the list will be read. A single
filename may also be given.
"""
- if type(filenames) in types.StringTypes:
+ if isinstance(filenames, basestring):
filenames = [filenames]
for filename in filenames:
try:
@@ -454,7 +454,7 @@ class ConfigParser:
# ';' is a comment delimiter only if it follows
# a spacing character
pos = optval.find(';')
- if pos and optval[pos-1] in string.whitespace:
+ if pos and optval[pos-1].isspace():
optval = optval[:pos]
optval = optval.strip()
# allow empty values