Permalink
Browse files

Make touch a staticmethod

  • Loading branch information...
pkolios committed Sep 3, 2017
1 parent 1c215c5 commit 4c1ab73cde8b2ca1cf88a21a8b5d3d4cf18e5e4c
Showing with 2 additions and 1 deletion.
  1. +2 −1 mackerel/build.py
View
@@ -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()

0 comments on commit 4c1ab73

Please sign in to comment.