mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[compat] Rename struct_(un)pack to compat_struct_(un)pack
This commit is contained in:
		| @@ -17,10 +17,10 @@ from youtube_dl.compat import ( | ||||
|     compat_expanduser, | ||||
|     compat_shlex_split, | ||||
|     compat_str, | ||||
|     compat_struct_unpack, | ||||
|     compat_urllib_parse_unquote, | ||||
|     compat_urllib_parse_unquote_plus, | ||||
|     compat_urllib_parse_urlencode, | ||||
|     struct_unpack, | ||||
| ) | ||||
|  | ||||
|  | ||||
| @@ -104,7 +104,7 @@ class TestCompat(unittest.TestCase): | ||||
|         self.assertTrue(isinstance(doc.find('foo/bar').text, compat_str)) | ||||
|  | ||||
|     def test_struct_unpack(self): | ||||
|         self.assertEqual(struct_unpack('!B', b'\x00'), (0,)) | ||||
|         self.assertEqual(compat_struct_unpack('!B', b'\x00'), (0,)) | ||||
|  | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yen Chi Hsuan
					Yen Chi Hsuan