]> jfr.im git - yt-dlp.git/blobdiff - devscripts/make_contributing.py
[cleanup] Fix misc bugs (#8968)
[yt-dlp.git] / devscripts / make_contributing.py
index 6b1b8219c45a0335baff8d2c7bb308e82308533e..a06f8a616e826ab51a32d7d9c76411ff13bc7fc6 100755 (executable)
@@ -1,7 +1,5 @@
 #!/usr/bin/env python3
-from __future__ import unicode_literals
 
-import io
 import optparse
 import re
 
@@ -16,7 +14,7 @@ def main():
 
     infile, outfile = args
 
-    with io.open(infile, encoding='utf-8') as inf:
+    with open(infile, encoding='utf-8') as inf:
         readme = inf.read()
 
     bug_text = re.search(
@@ -26,7 +24,7 @@ def main():
 
     out = bug_text + dev_text
 
-    with io.open(outfile, 'w', encoding='utf-8') as outf:
+    with open(outfile, 'w', encoding='utf-8') as outf:
         outf.write(out)