http://www.mediawiki.org/wiki/Special:Code/MediaWiki/98381
Revision: 98381 Author: ben Date: 2011-09-28 22:52:32 +0000 (Wed, 28 Sep 2011) Log Message: ----------- retabbing to get rid of mixed spaces and tabs. no content changes Modified Paths: -------------- trunk/debs/wikimedia-task-dns-auth/gen-zones Modified: trunk/debs/wikimedia-task-dns-auth/gen-zones =================================================================== --- trunk/debs/wikimedia-task-dns-auth/gen-zones 2011-09-28 22:48:32 UTC (rev 98380) +++ trunk/debs/wikimedia-task-dns-auth/gen-zones 2011-09-28 22:52:32 UTC (rev 98381) @@ -66,20 +66,20 @@ for file in os.listdir(templatedir): filepath = os.path.join(templatedir, file) - zonefilepath = os.path.join(zonedir, file) + zonefilepath = os.path.join(zonedir, file) # Only process regular files and symlinks if not os.path.isfile(filepath): continue - # Check file modification time - try: - if (os.path.getmtime(filepath) <= os.path.getmtime(zonefilepath) - and os.path.getmtime(langlist) <= os.path.getmtime(zonefilepath)): - continue - except OSError: - pass + # Check file modification time + try: + if (os.path.getmtime(filepath) <= os.path.getmtime(zonefilepath) + and os.path.getmtime(langlist) <= os.path.getmtime(zonefilepath)): + continue + except OSError: + pass - print 'Processing zone', file + print 'Processing zone', file # Read the entire file in a string template = open(filepath).read() @@ -88,6 +88,6 @@ substs['$zonename'] = file for var, value in substs.iteritems(): template = template.replace(var, value) - + # Write zonefile open(zonefilepath, 'w').write(header + template) _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs