mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[test_unicode_literals] Arm unicode_literals check
From now on, the line from __future__ import unicode_literals should be contained in every single Python file lest we run into any more 2.x/3.x issues. Going forward, we're likely to develop on 3.x only and would likely miss subtle bugs otherwise.
This commit is contained in:
		| @@ -1,4 +1,5 @@ | ||||
| #!/usr/bin/env python3 | ||||
| from __future__ import unicode_literals, with_statement | ||||
|  | ||||
| import rsa | ||||
| import json | ||||
| @@ -29,4 +30,5 @@ signature = hexlify(rsa.pkcs1.sign(json.dumps(versions_info, sort_keys=True).enc | ||||
| print('signature: ' + signature) | ||||
|  | ||||
| versions_info['signature'] = signature | ||||
| json.dump(versions_info, open('update/versions.json', 'w'), indent=4, sort_keys=True) | ||||
| with open('update/versions.json', 'w') as versionsf: | ||||
|     json.dump(versions_info, versionsf, indent=4, sort_keys=True) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user