Changes between Version 19 and Version 20 of DeveloperGuidelines/Py_2_3


Ignore:
Timestamp:
06/27/19 14:57:05 (6 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Py_2_3

    v19 v20  
    104104||basestring||{{{from s3compat import basestring}}}|| ||
    105105||INTEGER_TYPES||{{{from s3compat import INTEGER_TYPES}}}||maps to tuple of all known integer types: (int,long) in Py2, (int,) in Py3), for use with {{{isinstance}}}||
    106 ||urllib2||{{{from s3compat import urllib2|| ||
     106||urllib2||{{{from s3compat import urllib2||maps to urllib.requests in Py3, which is though only part of urllib2 - some urllib2 objects may need to be imported separately (see below)||
    107107||HTTPError||{{{from s3compat import HTTPError||replaces urllib2.HTTPError in Py2||
    108108||urlopen||{{{from s3compat import urlopen||replaces urllib.urlopen and urllib2.urlopen in Py2||