| | 80 | |
| | 81 | === Alternative Imports === |
| | 82 | |
| | 83 | As the locations and names of some libraries have changed in Python-3, we use the compatibility module (modules/s3compat.py) to implement suitable alternatives. Similarily, the compat module provides alternatives for other objects such as types, functions and certain common patterns. |
| | 84 | |
| | 85 | Where an object name is provided by modules/s3compat.py, it must be imported from there if used. |
| | 86 | |
| | 87 | The following objects are provided by s3compat: |
| | 88 | |
| | 89 | ||= '''Name''' =||= '''Import''' =||= '''!Comments/Caveats''' =|| |
| | 90 | ||StringIO||{{{from s3compat import StringIO}}}|||| |