diff options
author | Dan Mick <dan.mick@inktank.com> | 2013-06-18 11:03:24 -0700 |
---|---|---|
committer | Dan Mick <dan.mick@inktank.com> | 2013-06-18 14:22:07 -0700 |
commit | 2fc8d864454f522128d39833529584de3d2a5b7a (patch) | |
tree | 8f8418c2920236333283ce48332b643daae4e188 | |
parent | 4a3127f48d75121745f81d1aba723cb7f867f790 (diff) | |
download | ceph-2fc8d864454f522128d39833529584de3d2a5b7a.tar.gz |
ceph.in: global var dontsplit should be capitalized
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
-rwxr-xr-x | src/ceph.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ceph.in b/src/ceph.in index f4bdfe10cf1..3bc73a81532 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -956,13 +956,13 @@ def descsort(sh1, sh2): return cmp(concise_sig(sh1['sig']), concise_sig(sh2['sig'])) -dontsplit = string.letters + '{[<>]}' +DONTSPLIT = string.letters + '{[<>]}' def wrap(s, width, indent): """ generator to transform s into a sequence of strings width or shorter, for wrapping text to a specific column width. - Attempt to break on anything but dontsplit characters. + Attempt to break on anything but DONTSPLIT characters. indent is amount to indent 2nd-through-nth lines. so "long string long string long string" width=11 indent=1 becomes @@ -986,7 +986,7 @@ def wrap(s, width, indent): else: splitpos = width - while (splitpos > 0) and (s[splitpos-1] in dontsplit): + while (splitpos > 0) and (s[splitpos-1] in DONTSPLIT): splitpos -= 1 if splitpos == 0: |