From ce4afe46d211cdfb611b8e8109bb0dc160a12540 Mon Sep 17 00:00:00 2001 From: Trym Bremnes Date: Sat, 2 Oct 2021 16:42:35 +0200 Subject: Revert "Replace wildcard imports with concrete imports" This reverts commit 53d94b8091b36847bb9e495c76bb5a3ec2a2fdb5. The reason for the revert is that the commit in question introduced a regression where certain modules, functions and classes that were exposed before were no longer exposed. See https://github.com/gitpython-developers/GitPython/pull/1352#issuecomment-932757204 for additional information. --- git/__init__.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'git/__init__.py') diff --git a/git/__init__.py b/git/__init__.py index a2213ee0..ae9254a2 100644 --- a/git/__init__.py +++ b/git/__init__.py @@ -5,7 +5,7 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php # flake8: noqa #@PydevCodeAnalysisIgnore -from git.exc import GitError, GitCommandError, GitCommandNotFound, UnmergedEntriesError, CheckoutError, InvalidGitRepositoryError, NoSuchPathError, BadName # @NoMove @IgnorePep8 +from git.exc import * # @NoMove @IgnorePep8 import inspect import os import sys @@ -39,16 +39,16 @@ _init_externals() #{ Imports try: - from git.config import GitConfigParser # @NoMove @IgnorePep8 - from git.objects import Blob, Commit, Object, Submodule, Tree # @NoMove @IgnorePep8 - from git.refs import Head, Reference, RefLog, RemoteReference, SymbolicReference, TagReference # @NoMove @IgnorePep8 - from git.diff import Diff, DiffIndex, NULL_TREE # @NoMove @IgnorePep8 - from git.db import GitCmdObjectDB, GitDB # @NoMove @IgnorePep8 - from git.cmd import Git # @NoMove @IgnorePep8 - from git.repo import Repo # @NoMove @IgnorePep8 - from git.remote import FetchInfo, PushInfo, Remote, RemoteProgress # @NoMove @IgnorePep8 - from git.index import BlobFilter, IndexEntry, IndexFile # @NoMove @IgnorePep8 - from git.util import ( # @NoMove @IgnorePep8 + from git.config import GitConfigParser # @NoMove @IgnorePep8 + from git.objects import * # @NoMove @IgnorePep8 + from git.refs import * # @NoMove @IgnorePep8 + from git.diff import * # @NoMove @IgnorePep8 + from git.db import * # @NoMove @IgnorePep8 + from git.cmd import Git # @NoMove @IgnorePep8 + from git.repo import Repo # @NoMove @IgnorePep8 + from git.remote import * # @NoMove @IgnorePep8 + from git.index import * # @NoMove @IgnorePep8 + from git.util import ( # @NoMove @IgnorePep8 LockFile, BlockingLockFile, Stats, -- cgit v1.2.1