Skip to content

Commit 799c853

Browse files
committed
Improve ordering/grouping of a few imports
In modules soon to be modified, so if subsequent commits are later reverted, these import tweaks are not automatically undone.
1 parent 4abab92 commit 799c853

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

test/test_remote.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,37 @@
33
# This module is part of GitPython and is released under the
44
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/
55

6+
import os.path as osp
7+
from pathlib import Path
68
import random
79
import tempfile
8-
import pytest
910
from unittest import skipIf
1011

12+
import pytest
13+
1114
from git import (
12-
RemoteProgress,
15+
Commit,
1316
FetchInfo,
14-
Reference,
15-
SymbolicReference,
17+
GitCommandError,
1618
Head,
17-
Commit,
1819
PushInfo,
20+
Reference,
21+
Remote,
22+
RemoteProgress,
1923
RemoteReference,
24+
SymbolicReference,
2025
TagReference,
21-
Remote,
22-
GitCommandError,
2326
)
2427
from git.cmd import Git
25-
from pathlib import Path
2628
from git.exc import UnsafeOptionError, UnsafeProtocolError
29+
from git.util import rmtree, HIDE_WINDOWS_FREEZE_ERRORS, IterableList
2730
from test.lib import (
31+
GIT_DAEMON_PORT,
2832
TestBase,
29-
with_rw_repo,
30-
with_rw_and_rw_remote_repo,
3133
fixture,
32-
GIT_DAEMON_PORT,
34+
with_rw_and_rw_remote_repo,
35+
with_rw_repo,
3336
)
34-
from git.util import rmtree, HIDE_WINDOWS_FREEZE_ERRORS, IterableList
35-
import os.path as osp
3637

3738

3839
# Make sure we have repeatable results.

test/test_repo.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from io import BytesIO
99
import itertools
1010
import os
11+
import os.path as osp
1112
import pathlib
1213
import pickle
1314
import sys
@@ -17,22 +18,22 @@
1718
import pytest
1819

1920
from git import (
21+
BadName,
22+
Commit,
23+
Git,
24+
GitCmdObjectDB,
25+
GitCommandError,
26+
GitDB,
27+
Head,
28+
IndexFile,
2029
InvalidGitRepositoryError,
21-
Repo,
2230
NoSuchPathError,
23-
Head,
24-
Commit,
2531
Object,
26-
Tree,
27-
IndexFile,
28-
Git,
2932
Reference,
30-
GitDB,
31-
Submodule,
32-
GitCmdObjectDB,
3333
Remote,
34-
BadName,
35-
GitCommandError,
34+
Repo,
35+
Submodule,
36+
Tree,
3637
)
3738
from git.exc import (
3839
BadObject,
@@ -43,8 +44,6 @@
4344
from git.util import bin_to_hex, cygpath, join_path_native, rmfile, rmtree
4445
from test.lib import TestBase, fixture, with_rw_directory, with_rw_repo
4546

46-
import os.path as osp
47-
4847

4948
def iter_flatten(lol):
5049
for items in lol:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy