Move units into oslo.utils
bp graduate-oslo-utils Change-Id: I022dd51c9c9a59462ad94380c6ea7fbc0d145613
This commit is contained in:
parent
4eecd25bed
commit
380903a686
@ -7,4 +7,3 @@ script = tools/run_cross_tests.sh
|
|||||||
base=oslo.utils
|
base=oslo.utils
|
||||||
|
|
||||||
module=gettextutils
|
module=gettextutils
|
||||||
module=units
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
Unit constants
|
Unit constants
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#Binary unit constants.
|
# Binary unit constants.
|
||||||
Ki = 1024
|
Ki = 1024
|
||||||
Mi = 1024 ** 2
|
Mi = 1024 ** 2
|
||||||
Gi = 1024 ** 3
|
Gi = 1024 ** 3
|
||||||
@ -27,7 +27,7 @@ Ei = 1024 ** 6
|
|||||||
Zi = 1024 ** 7
|
Zi = 1024 ** 7
|
||||||
Yi = 1024 ** 8
|
Yi = 1024 ** 8
|
||||||
|
|
||||||
#Decimal unit constants.
|
# Decimal unit constants.
|
||||||
k = 1000
|
k = 1000
|
||||||
M = 1000 ** 2
|
M = 1000 ** 2
|
||||||
G = 1000 ** 3
|
G = 1000 ** 3
|
@ -22,8 +22,8 @@ from oslotest import base as test_base
|
|||||||
import six
|
import six
|
||||||
import testscenarios
|
import testscenarios
|
||||||
|
|
||||||
from oslo.utils.openstack.common import units
|
|
||||||
from oslo.utils import strutils
|
from oslo.utils import strutils
|
||||||
|
from oslo.utils import units
|
||||||
|
|
||||||
load_tests = testscenarios.load_tests_apply_scenarios
|
load_tests = testscenarios.load_tests_apply_scenarios
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user