Move units into oslo.utils

bp graduate-oslo-utils
Change-Id: I022dd51c9c9a59462ad94380c6ea7fbc0d145613
This commit is contained in:
Davanum Srinivas 2014-07-14 08:40:34 -04:00
parent 4eecd25bed
commit 380903a686
3 changed files with 3 additions and 4 deletions

View File

@ -7,4 +7,3 @@ script = tools/run_cross_tests.sh
base=oslo.utils base=oslo.utils
module=gettextutils module=gettextutils
module=units

View File

@ -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

View File

@ -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