summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-09-27 16:05:58 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-09-28 03:35:38 +0200
commite61439b3018b0b9a8eb43e59d0d7cf32041e2fed (patch)
tree864b8c57283d3167b192b69bd17e366252ebee15 /git/util.py
parentdf2fb548040c8313f4bb98870788604bc973fa18 (diff)
downloadgitpython-e61439b3018b0b9a8eb43e59d0d7cf32041e2fed.tar.gz
src: constify is_<platform>() calls
+ TCs: unittest-asserts for git-tests.
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/util.py b/git/util.py
index 31ff94fa..f931abe2 100644
--- a/git/util.py
+++ b/git/util.py
@@ -106,7 +106,7 @@ def join_path(a, *p):
return path
-if is_win():
+if is_win:
def to_native_path_windows(path):
return path.replace('/', '\\')
@@ -587,7 +587,7 @@ class LockFile(object):
try:
# on bloody windows, the file needs write permissions to be removable.
# Why ...
- if is_win():
+ if is_win:
os.chmod(lfp, 0o777)
# END handle win32
os.remove(lfp)