From 30387f16920f69544fcc7db40dfae554bcd7d1cc Mon Sep 17 00:00:00 2001 From: Kian Cross Date: Mon, 13 Jul 2020 15:45:55 +0100 Subject: Fixed all warnings in documentation and updated Makefile to treat warnings as errors. --- git/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'git/util.py') 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 -- cgit v1.2.1