@@ -39,7 +39,8 @@ def _async_fetch_files(dirpath, urls):
39
39
elif task .result ().http_status != 200 :
40
40
# handle non-200 HTTP response status codes + file write fails
41
41
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 } "
43
44
)
44
45
45
46
@@ -188,7 +189,8 @@ def u_diff(
188
189
that is not included in filepath_a OR filepath_b
189
190
:raises: fdiff.exceptions.AIOError if exception raised during execution of async I/O
190
191
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"""
192
194
with tempfile .TemporaryDirectory () as tmpdirpath :
193
195
# define the file paths with either local file requests
194
196
# or HTTP GET requests of remote files based on the command line request
@@ -236,23 +238,24 @@ def external_diff(
236
238
use_multiprocess = True ,
237
239
):
238
240
"""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"""
256
259
with tempfile .TemporaryDirectory () as tmpdirpath :
257
260
# define the file paths with either local file requests
258
261
# or HTTP GET requests of remote files based on the command line request
0 commit comments