@@ -134,7 +134,7 @@ def test_filename_with_url_delimiters(self):
134134                ';1#.tar.gz' ,
135135                ';&1=123;?.tar.gz' ,
136136                '?k1=v1&k2=v2.tar.gz' ,
137-              ):
137+        ):
138138            for  prefix  in  ('' , '/' , '\\ ' ,
139139                           'c:' , 'c:/' , 'c:\\ ' , 'c:/d/' , 'c:\\ d\\ ' ,
140140                           '//share/server/' , '\\ \\ share\\ server\\ ' ):
@@ -225,23 +225,23 @@ def test_guess_known_extensions(self):
225225    def  test_preferred_extension (self ):
226226        def  check_extensions ():
227227            for  mime_type , ext  in  (
228-                   ('applicaion/efi' ,'.efi'      ),
228+                 ('applicaion/efi' ,  '.efi' ),
229229                ("application/epub+zip" , ".epub" ),
230-                         (  'application/json' ,'.json'     ),
231-         (  'application/manifest+json' ,'.webmanifest' ),
232-         ('applicaion/mathematica' ,'.nb'       ),
233-         (  'application/mathml+xml' ,'.mml'      ),
234-         (  'application/mbox' ,'.mbox'     ),
230+                 ( 'application/json' ,  '.json' ),
231+                 ( 'application/manifest+json' ,  '.webmanifest' ),
232+                  ('applicaion/mathematica' ,  '.nb' ),
233+                 ( 'application/mathml+xml' ,  '.mml' ),
234+                 ( 'application/mbox' ,  '.mbox' ),
235235                ("application/octet-stream" , ".bin" ),
236236                ("application/gzip" , ".gz" ),
237-                   (  'application/ocsp-response' ,'.ors'      ),
238-         (  'application/ocsp-request' ,'.orq'      ),
239-                        ('application/pem-certificate-chain' ,'.pem'      ),
240-         ('application/pgp-keys' ,'.asc'      ),
237+                 ( 'application/ocsp-response' ,  '.ors' ),
238+                 ( 'application/ocsp-request' ,  '.orq' ),
239+                 ('application/pem-certificate-chain' ,  '.pem' ),
240+                  ('application/pgp-keys' ,  '.asc' ),
241241                ("application/ogg" , ".ogx" ),
242242                ("application/postscript" , ".ps" ),
243-                    (  'application/rfc+xml' ,'.rfcxml'   ),
244-         ('application/sql' ,'.sql'      ),
243+                 ( 'application/rfc+xml' ,  '.rfcxml' ),
244+                  ('application/sql' ,  '.sql' ),
245245                ("application/texinfo" , ".texi" ),
246246                ("application/toml" , ".toml" ),
247247                ("application/vnd.apple.mpegurl" , ".m3u" ),
@@ -263,7 +263,7 @@ def check_extensions():
263263                ("application/x-troff" , ".roff" ),
264264                ("application/xml" , ".xsl" ),
265265                ("application/yaml" , ".yaml" ),
266-                   ('application/zstd' ,'.zst'      ),
266+                 ('application/zstd' ,  '.zst' ),
267267                ("audio/flac" , ".flac" ),
268268                ("audio/matroska" , ".mka" ),
269269                ("audio/mp4" , ".m4a" ),
@@ -322,7 +322,7 @@ def check_file_type():
322322                ("video/mpeg" , ".mpe" ),
323323                ("video/mpeg" , ".mpeg" ),
324324                ("video/mpeg" , ".mpg" ),
325-              ):
325+        ):
326326                with  self .subTest (mime_type = mime_type , ext = ext ):
327327                    result , _  =  mimetypes .guess_file_type (f"filename{ ext }  " )
328328                    self .assertEqual (result , mime_type )
@@ -437,10 +437,10 @@ def test_registry_accelerator(self):
437437        from_reg  =  {}
438438        _winapi ._mimetypes_read_windows_registry (
439439            lambda  v , k : from_accel .setdefault (k , set ()).add (v )
440-          )
440+    )
441441        mimetypes .MimeTypes ._read_windows_registry (
442442            lambda  v , k : from_reg .setdefault (k , set ()).add (v )
443-          )
443+    )
444444        self .assertEqual (list (from_reg ), list (from_accel ))
445445        for  k  in  from_reg :
446446            self .assertEqual (from_reg [k ], from_accel [k ])
@@ -490,15 +490,15 @@ def test_multiple_inputs(self):
490490            result ,
491491            "type: application/pdf encoding: None\n " 
492492            "type: image/png encoding: None" 
493-          )
493+    )
494494
495495    def  test_multiple_inputs_error (self ):
496496        result  =  "\n " .join (mimetypes ._main (shlex .split ("foo.pdf foo.bar_ext" )))
497497        self .assertEqual (
498498            result ,
499499            "type: application/pdf encoding: None\n " 
500500            "error: media type unknown for foo.bar_ext" 
501-          )
501+    )
502502
503503
504504    def  test_invocation (self ):
0 commit comments