Author: kfogel
Date: Thu Aug 23 17:12:02 2007
New Revision: 1083

Log:
* tools/make-ad-sense.py
  (adsense_in_file): Come on, Karl, did we learn to program yesterday?


Modified:
   trunk/tools/make-ad-sense.py

Modified: trunk/tools/make-ad-sense.py
==============================================================================
--- trunk/tools/make-ad-sense.py        (original)
+++ trunk/tools/make-ad-sense.py        Thu Aug 23 17:12:02 2007
@@ -72,13 +72,11 @@
 
 def adsense_in_file(fname):
     """Return non-False iff file FNAME already contains adsense bits."""
-    # Just scan the whole file, this doesn't need to be efficient.
-    found = False
     f = file(fname)
     for line in f:
         if (line.find(adsense_id) >= 0):
-            found = True
-    return found
+            return True
+    return False
 
 def add_adsense_left_html(file):
     lines = open(file, 'r').readlines()

_______________________________________________
Producingoss-translators mailing list
[email protected]
http://www.red-bean.com/mailman/listinfo/producingoss-translators

Reply via email to