aboutsummaryrefslogtreecommitdiff
path: root/modules/safe.py
diff options
context:
space:
mode:
authorJim Hays <jim@emporatitle.com>2022-12-14 21:01:32 -0500
committerJim Hays <jim@emporatitle.com>2022-12-14 21:01:32 -0500
commitc0355caefe3d82e304e6d832699d581fc8f9fbf9 (patch)
treefd4289de6410ad909371225550e768e37136661e /modules/safe.py
parent685f9631b56ff8bd43bce24ff5ce0f9a0e9af490 (diff)
Fix various typos
Diffstat (limited to 'modules/safe.py')
-rw-r--r--modules/safe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/safe.py b/modules/safe.py
index 10460ad0..20e9d2fa 100644
--- a/modules/safe.py
+++ b/modules/safe.py
@@ -80,7 +80,7 @@ def check_pt(filename, extra_handler):
# new pytorch format is a zip file
with zipfile.ZipFile(filename) as z:
check_zip_filenames(filename, z.namelist())
-
+
# find filename of data.pkl in zip file: '<directory name>/data.pkl'
data_pkl_filenames = [f for f in z.namelist() if data_pkl_re.match(f)]
if len(data_pkl_filenames) == 0:
@@ -108,7 +108,7 @@ def load(filename, *args, **kwargs):
def load_with_extra(filename, extra_handler=None, *args, **kwargs):
"""
- this functon is intended to be used by extensions that want to load models with
+ this function is intended to be used by extensions that want to load models with
some extra classes in them that the usual unpickler would find suspicious.
Use the extra_handler argument to specify a function that takes module and field name as text,