From: Paul Sokolovsky Date: Thu, 7 Sep 2006 01:39:24 +0000 (+0000) Subject: sanitize.py: Drop unimportant Python 2.4 dependency. X-Git-Tag: Release-2010-05/1~9453^2~875^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec0b02d7c11c785bf3c594d7be3cc4b03fe984b0;p=openembedded.git sanitize.py: Drop unimportant Python 2.4 dependency. --- diff --git a/contrib/sanitize.py b/contrib/sanitize.py index 3d329730b1..e38c28c13f 100755 --- a/contrib/sanitize.py +++ b/contrib/sanitize.py @@ -301,7 +301,7 @@ if __name__ == "__main__": in_routine = False commentBloc = [] olines = [] - unknownVar = set() + unknownVar = [] for line in lines: line = line.rstrip() line = follow_rule(2, line) @@ -350,7 +350,7 @@ if __name__ == "__main__": if not varexist: s = string.split(line)[0].rstrip().lstrip() if s not in unknownVar: - unknownVar.add(s) + unknownVar.append(s) if not in_routine: print "## Warning: unknown variable/routine \"%s\"" % line OE_vars['others'].append(line)