From: Dan Mick Date: Tue, 18 Jun 2013 18:03:24 +0000 (-0700) Subject: ceph.in: global var dontsplit should be capitalized X-Git-Tag: v0.65~42 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2fc8d864454f522128d39833529584de3d2a5b7a;p=ceph.git ceph.in: global var dontsplit should be capitalized Signed-off-by: Dan Mick Reviewed-by: Sage Weil --- 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: