r98381 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98380‎ | r98381 | r98382 >
Date:22:52, 28 September 2011
Author:ben
Status:deferred (Comments)
Tags:
Comment:
retabbing to get rid of mixed spaces and tabs. no content changes
Modified paths:
  • /trunk/debs/wikimedia-task-dns-auth/gen-zones (modified) (history)

Diff [purge]

Index: trunk/debs/wikimedia-task-dns-auth/gen-zones
@@ -66,20 +66,20 @@
6767
6868 for file in os.listdir(templatedir):
6969 filepath = os.path.join(templatedir, file)
70 - zonefilepath = os.path.join(zonedir, file)
 70+ zonefilepath = os.path.join(zonedir, file)
7171
7272 # Only process regular files and symlinks
7373 if not os.path.isfile(filepath): continue
7474
75 - # Check file modification time
76 - try:
77 - if (os.path.getmtime(filepath) <= os.path.getmtime(zonefilepath)
78 - and os.path.getmtime(langlist) <= os.path.getmtime(zonefilepath)):
79 - continue
80 - except OSError:
81 - pass
 75+ # Check file modification time
 76+ try:
 77+ if (os.path.getmtime(filepath) <= os.path.getmtime(zonefilepath)
 78+ and os.path.getmtime(langlist) <= os.path.getmtime(zonefilepath)):
 79+ continue
 80+ except OSError:
 81+ pass
8282
83 - print 'Processing zone', file
 83+ print 'Processing zone', file
8484
8585 # Read the entire file in a string
8686 template = open(filepath).read()
@@ -88,6 +88,6 @@
8989 substs['$zonename'] = file
9090 for var, value in substs.iteritems():
9191 template = template.replace(var, value)
92 -
 92+
9393 # Write zonefile
9494 open(zonefilepath, 'w').write(header + template)

Comments

#Comment by Bhartshorne (talk | contribs)   20:27, 29 September 2011

followed up by r98428

Status & tagging log