Alias "unicode" to "str" under Python 3

The six way of doing this is to replace all occurences of "unicode"
with "six.text_type". However, "unicode" is non-ambiguous and
(arguably) easier to read. Also, using it makes the patches smaller,
which should help with backporting.

Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
Jan Cholasta committed 2015-09-17 11:08:43 +02:00
1 parent 1550b5ab50
commit 23507e6124
90 files changed
+394

No files matched your search

+3
View File
@@ -23,6 +23,9 @@ import copy
import six
if six.PY3:
unicode = str
@six.python_2_unicode_compatible
class DNSName(dns.name.Name):