Fix a few typos
diff --git a/Lib/packaging/run.py b/Lib/packaging/run.py
index 671a4bf..4756f7c 100644
--- a/Lib/packaging/run.py
+++ b/Lib/packaging/run.py
@@ -368,7 +368,7 @@
('list', 'List installed projects', _list),
('graph', 'Display a graph', _graph),
('create', 'Create a project', _create),
- ('generate-setup', 'Generate a backward-comptatible setup.py', _generate),
+ ('generate-setup', 'Generate a backward-compatible setup.py', _generate),
]
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 9fe7bba..03709c9 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -1066,7 +1066,7 @@
keys = set(packaging.command._COMMANDS)
return id_, keys
def restore_packaging_command__COMMANDS(self, saved):
- # if command._COMMANDS was bound to another dict obhect, we can't
+ # if command._COMMANDS was bound to another dict object, we can't
# restore the previous object and contents, because the get_ method
# above does not return the dict object (to ignore changes in values)
for key in packaging.command._COMMANDS.keys() - saved[1]: