Skip to content

Commit

Permalink
Merge pull request #122 from mathstuf/octal-literals
Browse files Browse the repository at this point in the history
local: use octal literals
  • Loading branch information
RonnyPfannschmidt committed May 4, 2017
2 parents a1ce2aa + 58e15b8 commit 03282a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/_path/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,14 @@ def remove(self, rec=1, ignore_errors=False):
if rec:
# force remove of readonly files on windows
if iswin32:
self.chmod(448, rec=1) # octcal 0700
self.chmod(0o700, rec=1)
py.error.checked_call(py.std.shutil.rmtree, self.strpath,
ignore_errors=ignore_errors)
else:
py.error.checked_call(os.rmdir, self.strpath)
else:
if iswin32:
self.chmod(448) # octcal 0700
self.chmod(0o700)
py.error.checked_call(os.remove, self.strpath)

def computehash(self, hashtype="md5", chunksize=524288):
Expand Down

0 comments on commit 03282a4

Please sign in to comment.