Commits

Mikhail Korobov committed b085486

fix Python 3.x issue

Comments (0)

Files changed (1)

opencorpora/cli.py

 
     print('Creating %s from %s' % (out_file, args.url))
 
-    with open(out_file, 'w') as out:
+    with open(out_file, 'wb') as out:
         def on_chunk():
             sys.stdout.write('.')
             sys.stdout.flush()
     return args.func(args)
 
 if __name__ == '__main__':
-    sys.exit(main())
+    sys.exit(main())