summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
authorKian Cross <kian@kiancross.co.uk>2020-07-13 15:45:55 +0100
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-07-13 22:55:29 +0800
commit30387f16920f69544fcc7db40dfae554bcd7d1cc (patch)
tree93012b9f2780edf7201d5ff20deec2e083837cbd /git/util.py
parent9b68361c8b81b23be477b485e2738844e0832b2f (diff)
downloadgitpython-30387f16920f69544fcc7db40dfae554bcd7d1cc.tar.gz
Fixed all warnings in documentation and updated Makefile to treat warnings as errors.
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/git/util.py b/git/util.py
index d8671107..216703cb 100644
--- a/git/util.py
+++ b/git/util.py
@@ -39,11 +39,11 @@ from .exc import InvalidGitRepositoryError
# Handle once test-cases are back up and running.
# Most of these are unused here, but are for use by git-python modules so these
# don't see gitdb all the time. Flake of course doesn't like it.
-__all__ = ("stream_copy", "join_path", "to_native_path_windows", "to_native_path_linux",
+__all__ = ["stream_copy", "join_path", "to_native_path_linux",
"join_path_native", "Stats", "IndexFileSHA1Writer", "Iterable", "IterableList",
"BlockingLockFile", "LockFile", 'Actor', 'get_user_id', 'assure_directory_exists',
'RemoteProgress', 'CallableRemoteProgress', 'rmtree', 'unbare_repo',
- 'HIDE_WINDOWS_KNOWN_ERRORS')
+ 'HIDE_WINDOWS_KNOWN_ERRORS']
log = logging.getLogger(__name__)
@@ -148,6 +148,7 @@ if is_win:
def to_native_path_linux(path):
return path.replace('\\', '/')
+ __all__.append("to_native_path_windows")
to_native_path = to_native_path_windows
else:
# no need for any work on linux