mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Use path.join
This commit is contained in:
parent
b73173fad0
commit
0da258043f
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ def tempdir_factory(tmpdir):
|
||||||
self.tmpdir_count = 0
|
self.tmpdir_count = 0
|
||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
path = os.path.join(tmpdir.strpath, five.text(self.tmpdir_count))
|
path = tmpdir.join(five.text(self.tmpdir_count)).strpath
|
||||||
self.tmpdir_count += 1
|
self.tmpdir_count += 1
|
||||||
os.mkdir(path)
|
os.mkdir(path)
|
||||||
return path
|
return path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue