Browse code

remove debug output that mixes unicode and ascii strings poorly

Matt Domsch authored on 2012/12/08 13:34:45
Showing 1 changed files
... ...
@@ -77,8 +77,7 @@ def filter_exclude_include(src_list):
77 77
             exclude_list[file] = src_list[file]
78 78
             del(src_list[file])
79 79
             continue
80
-        else:
81
-            debug(u"PASS: %s" % (file))
80
+
82 81
     return src_list, exclude_list
83 82
 
84 83
 def handle_exclude_include_walk(root, dirs, files):
... ...
@@ -90,7 +89,6 @@ def handle_exclude_include_walk(root, dirs, files):
90 90
     # this prevents us from recursing down trees we know we want to ignore
91 91
     for x in copydirs:
92 92
         d = os.path.join(root, x, '')
93
-        debug(u"CHECK: %s" % d)
94 93
         excluded = False
95 94
         for r in cfg.exclude:
96 95
             if r.search(d):
... ...
@@ -106,16 +104,12 @@ def handle_exclude_include_walk(root, dirs, files):
106 106
                     break
107 107
         if excluded:
108 108
             ## Still excluded - ok, action it
109
-            debug(u"EXCLUDE: %s" % d)
110 109
 	    dirs.remove(x)
111 110
             continue
112
-        else:
113
-            debug(u"PASS: %s" % (d))
114 111
 
115 112
     # exclude file matches in the current directory
116 113
     for x in copyfiles:
117 114
         file = os.path.join(root, x)
118
-        debug(u"CHECK: %s" % file)
119 115
         excluded = False
120 116
         for r in cfg.exclude:
121 117
             if r.search(file):
... ...
@@ -134,8 +128,6 @@ def handle_exclude_include_walk(root, dirs, files):
134 134
             debug(u"EXCLUDE: %s" % file)
135 135
             files.remove(x)
136 136
             continue
137
-        else:
138
-            debug(u"PASS: %s" % (file))
139 137
 
140 138
 def fetch_local_list(args, recursive = None):
141 139
     def _get_filelist_local(loc_list, local_uri, cache):