| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
The Python 2.7 Support has been dropped since Ussuri.
So remove hacking rules for compatibility between python 2 and 3.
Change-Id: Idd6a1efd1857a70fc7d960b365bfc58d6cbe00d3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.
We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.
Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]
[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328
Change-Id: I79f231823939e421a04377ca19e2e65b12d9b26a
|
|
|
|
|
|
|
|
|
|
|
|
| |
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Remove hacking and friends from lower-constraints, they are not needed
for installation.
Change-Id: If75153300f07e6d1c5bf433af35a0dd4d98e6c7f
|
|
|
|
|
|
|
| |
Fixed a TypeError when running with python3, and also added
a 'benchmark3' target to run it on python3 explicitly.
Change-Id: Ia3514465f7d1e97845891cf9aaabcf93e36e0f57
|
|
|
|
|
|
|
|
|
|
| |
Move the public API out of oslo.rootwrap to oslo_rootwrap. Retain
the ability to import from the old namespace package for backwards
compatibility for this release cycle.
bp/drop-namespace-packages
Change-Id: Ifed1a99e5ea6d999760731867c4294707698d41c
|
|
|
|
| |
Change-Id: I9dbd71abc9cb7cca75582910be0eeefc27a1a174
|
|
Benchmark shows performance penalty rootwrap introduces compared to one of
plain sudo.
To run benchmark, issue: tox -e benchmark
Example output:
Running 'ip a':
method : min avg max dev
ip a : 4.185ms 4.570ms 5.657ms 187.705us
sudo ip a : 13.564ms 14.437ms 28.452ms 1.470ms
sudo rootwrap conf ip a : 148.839ms 192.424ms 254.043ms 19.219ms
Running 'ip netns exec bench_ns ip a':
method : min avg max dev
sudo ip netns exec bench_ns ip a : 109.772ms 151.627ms 209.943ms 22.991ms
sudo rootwrap conf ip netns exec bench_ns ip a : 289.345ms 345.471ms 463.807ms 32.873ms
Change-Id: Id8e41be6602fa8dcff48a8a4ba44d35dd3043731
|