Clean imports in code

This patch set modifies lines which are importing objects
instead of modules. As per openstack import guide lines, user should
import modules in a file not objects.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: If90022aa967e9cd898b6ff97da9643102c2c8150
This commit is contained in:
Cao Xuan Hoang 2016-11-01 14:27:13 +07:00
parent 28fa773dea
commit f3f0f7eb9e
3 changed files with 6 additions and 6 deletions

View File

@ -13,10 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from monascastatsd.metricbase import MetricBase
from monascastatsd import metricbase
class Counter(MetricBase):
class Counter(metricbase.MetricBase):
def __init__(self, name, connection, dimensions=None):
super(self.__class__, self).__init__(name=name,

View File

@ -13,10 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from monascastatsd.metricbase import MetricBase
from monascastatsd import metricbase
class Gauge(MetricBase):
class Gauge(metricbase.MetricBase):
def __init__(self, connection, name=None, dimensions=None):
super(self.__class__, self).__init__(name=name,

View File

@ -17,10 +17,10 @@ import contextlib
import functools
import time
from monascastatsd.metricbase import MetricBase
from monascastatsd import metricbase
class Timer(MetricBase):
class Timer(metricbase.MetricBase):
def __init__(self, connection, name=None, dimensions=None):
super(self.__class__, self).__init__(name=name,