diff options
| author | Bob Halley <halley@dnspython.org> | 2020-05-01 12:38:21 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2020-05-01 12:38:21 -0700 |
| commit | 3f115ff2054c8859c9cd280de38b3ce5055178d6 (patch) | |
| tree | 14a877ac07b25a527e0457689c8800c18cdb0924 /dns/tokenizer.py | |
| parent | f8ec9f65512ae749c8f4f5e67947a7cee41db7e5 (diff) | |
| download | dnspython-3f115ff2054c8859c9cd280de38b3ce5055178d6.tar.gz | |
In library code, replace from io import BytesIO (or StringIO) with import io
Diffstat (limited to 'dns/tokenizer.py')
| -rw-r--r-- | dns/tokenizer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dns/tokenizer.py b/dns/tokenizer.py index 479c002..66714b7 100644 --- a/dns/tokenizer.py +++ b/dns/tokenizer.py @@ -17,7 +17,7 @@ """Tokenize DNS master file format""" -from io import StringIO +import io import sys import dns.exception @@ -189,11 +189,11 @@ class Tokenizer(object): """ if isinstance(f, str): - f = StringIO(f) + f = io.StringIO(f) if filename is None: filename = '<string>' elif isinstance(f, bytes): - f = StringIO(f.decode()) + f = io.StringIO(f.decode()) if filename is None: filename = '<string>' else: |
