Changes between Version 23 and Version 24 of DeveloperGuidelines/Py_2_3
- Timestamp:
- 06/28/19 08:12:42 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Py_2_3
v23 v24 103 103 ||StringIO||{{{from s3compat import StringIO}}}|| || 104 104 ||basestring||{{{from s3compat import basestring}}}|| || 105 ||unichr||{{{from s3compat import unichr || ||105 ||unichr||{{{from s3compat import unichr}}}|| || 106 106 ||STRING_TYPES||{{{from s3compat import STRING_TYPES}}}||maps to tuple of all known string types: (str,unicode) in Py2, (str,) in Py3, for type checking|| 107 107 ||long||{{{from s3compat import long}}}||same as {{{int}}} in Py3, so can occasionally lead to redundancy|| … … 111 111 ||urlopen||{{{from s3compat import urlopen}}}||replaces urllib.urlopen and urllib2.urlopen in Py2|| 112 112 ||urlencode||{{{from s3compat import urlencode}}}||replaces urllib.urlencode in Py2|| 113 ||HTMLParser||{{{from s3compat import HTMLParser ||replaces HTMLParser.HTMLParser in Py2||113 ||HTMLParser||{{{from s3compat import HTMLParser}}}||replaces HTMLParser.HTMLParser in Py2|| 114 114 115 115