Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 25, 2023
1 parent b62dc65 commit 2d2c87d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/glideinFrontendInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ def writeTypedClassadAttrToFile(fd, attr_name, attr_value):
"""
Given the FD, type check the value and write the info the classad file
"""
if isinstance(attr_value, (int, int, float)):
if isinstance(attr_value, (int, float)):
# don't quote numeric values
fd.write(f"{attr_name} = {attr_value}\n")
else:
Expand Down
2 changes: 1 addition & 1 deletion lib/config_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def update(data, update_data, overwrite=True):
if value is None:
if key in data:
del data[key]
elif isinstance(value, collections.Mapping):
elif isinstance(value, collections.abc.Mapping):
sub_data = data.get(key, {})
if sub_data is not None:
data[key] = update(sub_data, value, overwrite)
Expand Down

0 comments on commit 2d2c87d

Please sign in to comment.