summaryrefslogtreecommitdiff
path: root/troveclient/client.py
diff options
context:
space:
mode:
authorDenis Makogon <dmakogon@mirantis.com>2013-12-10 18:49:20 +0200
committerDenis Makogon <dmakogon@mirantis.com>2013-12-10 18:49:20 +0200
commit69c865695f388141bcbf645e57771bcb3fcdb491 (patch)
tree50cb616ebc6fefda52a6efd96141dcacc4ea2110 /troveclient/client.py
parent7499015e510fbd8f900581fabafdc586b097ab3c (diff)
downloadpython-troveclient-69c865695f388141bcbf645e57771bcb3fcdb491.tar.gz
Ignore fewer PEP8/flake8 rules
Reasons: - code should be pythonicaly clean, that is why number of ignored rules should reduced Changes: - E125, F811, H102, H103, F201, H23, H302, F841, H301, H702, H703 rules are now enabled Change-Id: Ibf4025162244d3c2f1278b49a76ec1527a729042
Diffstat (limited to 'troveclient/client.py')
-rw-r--r--troveclient/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/troveclient/client.py b/troveclient/client.py
index 72536fb..95dbfbf 100644
--- a/troveclient/client.py
+++ b/troveclient/client.py
@@ -36,9 +36,9 @@ except ImportError:
import urllib.parse as urlparse
try:
- from eventlet import sleep
+ import eventlet as sleep_lib
except ImportError:
- from time import sleep
+ import time as sleep_lib
try:
import json
@@ -201,7 +201,7 @@ class HTTPClient(object):
self._logger.debug(
"Failed attempt(%s of %s), retrying in %s seconds" %
(attempts, self.retries, backoff))
- sleep(backoff)
+ sleep_lib.sleep(backoff)
backoff *= 2
def get(self, url, **kwargs):