@@ -39,7 +39,8 @@ def _async_fetch_files(dirpath, urls):
3939 elif task .result ().http_status != 200 :
4040 # handle non-200 HTTP response status codes + file write fails
4141 raise AIOError (
42- f"failed to pull '{ task .result ().url } ' with HTTP status code { task .result ().http_status } "
42+ f"failed to pull '{ task .result ().url } ' with HTTP status "
43+ f"code { task .result ().http_status } "
4344 )
4445
4546
@@ -188,7 +189,8 @@ def u_diff(
188189 that is not included in filepath_a OR filepath_b
189190 :raises: fdiff.exceptions.AIOError if exception raised during execution of async I/O
190191 GET request for URL or file write
191- :raises: fdiff.exceptions.AIOError if GET request to URL returned non-200 response status code"""
192+ :raises: fdiff.exceptions.AIOError if GET request to URL returned non-200 response
193+ status code"""
192194 with tempfile .TemporaryDirectory () as tmpdirpath :
193195 # define the file paths with either local file requests
194196 # or HTTP GET requests of remote files based on the command line request
@@ -236,23 +238,24 @@ def external_diff(
236238 use_multiprocess = True ,
237239):
238240 """Performs a unified diff on a TTX serialized data format dump of font binary data using
239- an external diff executable that is requested by the caller via `command`
240-
241- command: (string) command line executable string and arguments to define execution
242- filepath_a: (string) pre-file local file path or URL path
243- filepath_b: (string) post-file local file path or URL path
244- include_tables: (list of str) Python list of OpenType tables to include in the diff
245- exclude_tables: (list of str) Python list of OpentType tables to exclude from the diff
246- use_multiprocess: (bool) use multi-processor optimizations (default=True)
247-
248- include_tables and exclude_tables are mutually exclusive arguments. Only one should
249- be defined
250-
251- :returns: Generator of ordered diff line strings that include newline line endings
252- :raises: KeyError if include_tables or exclude_tables includes a mis-specified table
253- that is not included in filepath_a OR filepath_b
254- :raises: IOError if exception raised during execution of `command` on TTX files
255- :raises: fdiff.exceptions.AIOError if GET request to URL returned non-200 response status code"""
241+ an external diff executable that is requested by the caller via `command`
242+
243+ command: (string) command line executable string and arguments to define execution
244+ filepath_a: (string) pre-file local file path or URL path
245+ filepath_b: (string) post-file local file path or URL path
246+ include_tables: (list of str) Python list of OpenType tables to include in the diff
247+ exclude_tables: (list of str) Python list of OpentType tables to exclude from the diff
248+ use_multiprocess: (bool) use multi-processor optimizations (default=True)
249+
250+ include_tables and exclude_tables are mutually exclusive arguments. Only one should
251+ be defined
252+
253+ :returns: Generator of ordered diff line strings that include newline line endings
254+ :raises: KeyError if include_tables or exclude_tables includes a mis-specified table
255+ that is not included in filepath_a OR filepath_b
256+ :raises: IOError if exception raised during execution of `command` on TTX files
257+ :raises: fdiff.exceptions.AIOError if GET request to URL returned non-200 response
258+ status code"""
256259 with tempfile .TemporaryDirectory () as tmpdirpath :
257260 # define the file paths with either local file requests
258261 # or HTTP GET requests of remote files based on the command line request
0 commit comments