From e61439b3018b0b9a8eb43e59d0d7cf32041e2fed Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Tue, 27 Sep 2016 16:05:58 +0200 Subject: src: constify is_() calls + TCs: unittest-asserts for git-tests. --- git/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/util.py') 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) -- cgit v1.2.1