From 2fc8d864454f522128d39833529584de3d2a5b7a Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Tue, 18 Jun 2013 11:03:24 -0700 Subject: [PATCH] ceph.in: global var dontsplit should be capitalized Signed-off-by: Dan Mick Reviewed-by: Sage Weil --- src/ceph.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ceph.in b/src/ceph.in index f4bdfe10cf17c..3bc73a81532b9 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: -- 2.39.5