diff options
| author | Kui Shi <skuicloud@gmail.com> | 2013-10-14 17:56:11 +0800 |
|---|---|---|
| committer | Kui Shi <skuicloud@gmail.com> | 2013-10-14 17:56:11 +0800 |
| commit | 253569d0700839e277809f3f0ee8c662dedfdbea (patch) | |
| tree | 8d7bfa72525c21d1efc969856977218197ce2fc9 /ceilometerclient/common | |
| parent | d0a3dc68ac8d5caa6e33434d78f46b80efdcb7b1 (diff) | |
| download | python-ceilometerclient-253569d0700839e277809f3f0ee8c662dedfdbea.tar.gz | |
replace basetring/xrange
basetring --> six.string_types
xrange --> six.moves.xrange
Partial Implement: blueprint py33-support
Change-Id: Iedc2cd66ec65c0e4685e56a3bfbf8e9d38fd0072
Diffstat (limited to 'ceilometerclient/common')
| -rw-r--r-- | ceilometerclient/common/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ceilometerclient/common/utils.py b/ceilometerclient/common/utils.py index c22dde4..3f2fa91 100644 --- a/ceilometerclient/common/utils.py +++ b/ceilometerclient/common/utils.py @@ -74,7 +74,7 @@ def print_dict(d, dict_property="Property", wrap=0): v = str(v) # if value has a newline, add in multiple rows # e.g. fault with stacktrace - if v and isinstance(v, basestring) and r'\n' in v: + if v and isinstance(v, six.string_types) and r'\n' in v: lines = v.strip().split(r'\n') col1 = k for line in lines: |
