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:
parent
28fa773dea
commit
f3f0f7eb9e
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue