summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn <john.mccrae@progress.com>2022-12-21 09:12:11 -0800
committerJohn <john.mccrae@progress.com>2022-12-21 09:12:11 -0800
commit42fe730721f9052a97009f2889c3707d812117e8 (patch)
tree3c9b64eb957c4d671c302a942fa89549d12c783a /lib
parent41bd002ec75e8383b516a699e38b51b502815edb (diff)
downloadchef-42fe730721f9052a97009f2889c3707d812117e8.tar.gz
Added or Corrected spelling and corrected a Python exception handler which was incorrectly using a comma
Signed-off-by: John <john.mccrae@progress.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/package/yum/yum_helper.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/package/yum/yum_helper.py b/lib/chef/provider/package/yum/yum_helper.py
index e3718f994d..71b41760ee 100644
--- a/lib/chef/provider/package/yum/yum_helper.py
+++ b/lib/chef/provider/package/yum/yum_helper.py
@@ -92,8 +92,8 @@ def query(base, command):
# then the result was searchNevra'd. please be extremely careful if attempting to fix that
# since searchNevra does not support prco tuples.
if bool(re.search('\\s+', command['provides'])):
- # handles flags (<, >, =, etc) and versions, but no wildcareds
- # raises error for any invalid input like: 'FOO BAR BAZ'
+ # handles flags (<, >, =, etc) and versions, but no wildcards
+ # raises error for any invalid input like: 'FOO BAR BAZ'
pkgs = obj.getProvides(*string_to_prco_tuple(command['provides']))
elif do_nevra:
# now if we're given version or arch properties explicitly, then we do a SearchNevra.
@@ -166,7 +166,7 @@ try:
try:
command = json.loads(line)
- except ValueError, e:
+ except ValueError as e:
raise RuntimeError("bad json parse")
if base is None: