]>
jfr.im git - yt-dlp.git/blob - devscripts/make_contributing.py
2 from __future__
import unicode_literals
10 return # This is unused in yt-dlp
12 parser
= optparse
.OptionParser(usage
='%prog INFILE OUTFILE')
13 options
, args
= parser
.parse_args()
15 parser
.error('Expected an input and an output filename')
17 infile
, outfile
= args
19 with io
.open(infile
, encoding
='utf-8') as inf
:
23 r
'(?s)#\s*BUGS\s*[^\n]*\s*(.*?)#\s*COPYRIGHT', readme
).group(1)
25 r
'(?s)(#\s*DEVELOPER INSTRUCTIONS.*?)#\s*EMBEDDING yt-dlp', readme
).group(1)
27 out
= bug_text
+ dev_text
29 with io
.open(outfile
, 'w', encoding
='utf-8') as outf
:
33 if __name__
== '__main__':