]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: global var dontsplit should be capitalized
authorDan Mick <dan.mick@inktank.com>
Tue, 18 Jun 2013 18:03:24 +0000 (11:03 -0700)
committerDan Mick <dan.mick@inktank.com>
Tue, 18 Jun 2013 21:22:07 +0000 (14:22 -0700)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/ceph.in

index f4bdfe10cf17cc137851859d99ef80190ff03b7b..3bc73a81532b900e81dfb2f4de88077ee7d4e14b 100755 (executable)
@@ -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: