Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 411 Bytes
import os, sys
root = sys.argv[1]
print 'Putting dummy comment in all blank files ...'
for path, dirs, files in os.walk(root):
inits = [os.path.join(path, f) for f in files if f == '']
blank_inits = [f for f in inits if not os.path.getsize(f)]
for i in blank_inits:
f = open(i, 'w')
f.write('# For debhelper brokenness, making this file non-blank\n')
Something went wrong with that request. Please try again.