2 from __future__ import unicode_literals
10 parser = optparse.OptionParser(usage='%prog INFILE OUTFILE')
11 options, args = parser.parse_args()
13 parser.error('Expected an input and an output filename')
15 infile, outfile = args
17 with io.open(infile, encoding='utf-8') as inf:
21 r'(?s)#\s*BUGS\s*[^\n]*\s*(.*?)#\s*COPYRIGHT', readme).group(1)
23 r'(?s)(#\s*DEVELOPER INSTRUCTIONS.*?)#\s*EMBEDDING YOUTUBE-DL',
26 out = bug_text + dev_text
28 with io.open(outfile, 'w', encoding='utf-8') as outf:
32 if __name__ == '__main__':