Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make touch a staticmethod
  • Loading branch information
pkolios committed Sep 3, 2017
1 parent 1c215c5 commit 4c1ab73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mackerel/build.py
Expand Up @@ -63,7 +63,8 @@ def execute(self, dry_run: bool = False) -> None:
path.parent.mkdir(parents=True)
shutil.copyfile(src=f, dst=path)

def touch(self, path: Path) -> bool:
@staticmethod
def touch(path: Path) -> bool:
if not path.parent.exists():
path.parent.mkdir(parents=True)
path.touch()
Expand Down

0 comments on commit 4c1ab73

Please sign in to comment.