Skip to content

Commit

Permalink
more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aappleby committed Mar 7, 2024
1 parent c5c69a4 commit 51b50fd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hancho.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ def touch(name):
if os.path.exists(name):
os.utime(name, None)
return name
else:
with open(name, "w", encoding="utf-8") as file:
file.write("")
return name

with open(name, "w", encoding="utf-8") as file:
file.write("")
return name


################################################################################
Expand Down Expand Up @@ -346,7 +346,7 @@ async def expand_async(rule, template, depth=0):
raise template

# Functions just get passed through
#if inspect.isfunction(template):
# if inspect.isfunction(template):
# return template
assert not inspect.isfunction(template)

Expand Down Expand Up @@ -405,12 +405,12 @@ async def flatten_async(rule, elements, depth=0):

################################################################################


class Cancel(BaseException):
"""
Stub exception class that's used to cancel tasks that depend on a task that
threw a real exception.
"""
pass


################################################################################
Expand Down

0 comments on commit 51b50fd

Please sign in to comment.