瀏覽代碼

update comments

oz123 11 年之前
父節點
當前提交
c8ad215b5b
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      pwman/ui/tools.py

+ 5 - 1
pwman/ui/tools.py

@@ -287,6 +287,8 @@ class CMDLoop(CliMenu):
                     current = x.getter
                 except AttributeError:
                     current = x
+
+                # when printing tags, we have list ...
                 currentstr = ''
                 if type(current) == list:
                     for c in current:
@@ -294,11 +296,13 @@ class CMDLoop(CliMenu):
                             currentstr += ' ' + c
                         except TypeError:
                             currentstr += ' ' + c._name
+                # for the case we are not dealing with
+                # a list of tags
                 else:
                     currentstr = current
 
                 print ("%s - %s: %s" % (i, x.name, currentstr))
-            print("%c - Finish editing" % ('X'))
+            print("X - Finish editing")
             option = getonechar("Enter your choice:")
             try:
                 print ("Selection, ", option)