Use python 3 compatible scripting
Manila has dependencies, that does not work with python 3 yet, but we already can start using python 3 compatible code to minimize work in future.
Common patterns:
Replace dict.iteritems() with six.iteritems(dict)
Replace iterator.next() with six.next(iterator)
Replace basestring with six.string_types
Replace unicode with six.text_type
More detail info: https:/
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Low
- Drafter:
- Valeriy Ponomaryov
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Goutham Pacha Ravi
- Completed by
- Goutham Pacha Ravi
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Replace python print operator with print function (pep H233, py33)
Addressed by: https:/
py33: use six.iteritems for item iterations (part1)
Addressed by: https:/
Cleanup manila.utils module (part1)
Addressed by: https:/
py33: use six.iteritems for item iterations (part2)
Gerrit topic: https:/
Addressed by: https:/
py3.x: Use six.text_type() instead of unicode()
Addressed by: https:/
py3: use six.string_types instead of basestring
Addressed by: https:/
py3: Use six module for StringIO imports
Addressed by: https:/
py3: use six.moves.
Addressed by: https:/
py3: use six.moves.range instead of xrange
Addressed by: https:/
py3: use function next() instead of next() method on iterator objects
Addressed by: https:/
Fix imports for py34 compatibility
Addressed by: https:/
Fix ZFSSA driver for py34 compatibility
Addressed by: https:/
Fix exceptions handling for py34 compatibility
Addressed by: https:/
Replace (int, long) with six.integer_types.
Addressed by: https:/
Fix /manila/
Addressed by: https:/
Replace 'values()' with 'six.iretvalues'.
Addressed by: https:/
Replace '__metaclass__' with '@six.add_
Addressed by: https:/
Replace 'types.StringTypes' with 'six.string_types'
Addressed by: https:/
Fix string encoding for Python 3 compatibility
Addressed by: https:/
Replace dict.iteritems() with six.iteritems()
Addressed by: https:/
Fix dictionary initialization for Python 3 compatibility
Addressed by: https:/
Fix list creation
Addressed by: https:/
In Python 3 request body should be bytes string
Addressed by: https:/
Fix py34 tox job
Addressed by: https:/
Fix convertions to integer for py34 compatibility
Addressed by: https:/
Replace py2 xrange with six.moves.range
Addressed by: https:/
Stop using deprecated contextlib.nested
Addressed by: https:/
Make QuobyteHttpsCon
Addressed by: https:/
Remove ordering attempts of 'unorderable types'
Addressed by: https:/
Make 'utils.
Addressed by: https:/
Fix 'hacking' unit tests for py3 compatibility
Addressed by: https:/
Fix HTTP headers case for API unit tests
Addressed by: https:/
Skip unit tests for SSL + py3
Gerrit topic: https:/
Addressed by: https:/
Replace LOG.warn with LOG.warning
Addressed by: https:/
Using dict.items() is better than six.iteritems(dict)
Addressed by: https:/
Hacking check for str in exception breaks in py34
Addressed by: https:/
py3.x: Use six.text_type() instead of unicode()
Addressed by: https:/
py3.x: split()
Addressed by: https:/
py3.x: reload_module
Addressed by: https:/
py3.x: list() syntax
Addressed by: https:/
Remove ordering attempts of 'unorderable types'