Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit799c853

Browse files
committed
Improve ordering/grouping of a few imports
In modules soon to be modified, so if subsequent commits are laterreverted, these import tweaks are not automatically undone.
1 parent4abab92 commit799c853

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+
importos.pathasosp
7+
frompathlibimportPath
68
importrandom
79
importtempfile
8-
importpytest
910
fromunittestimportskipIf
1011

12+
importpytest
13+
1114
fromgitimport (
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
fromgit.cmdimportGit
25-
frompathlibimportPath
2628
fromgit.excimportUnsafeOptionError,UnsafeProtocolError
29+
fromgit.utilimportrmtree,HIDE_WINDOWS_FREEZE_ERRORS,IterableList
2730
fromtest.libimport (
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-
fromgit.utilimportrmtree,HIDE_WINDOWS_FREEZE_ERRORS,IterableList
35-
importos.pathasosp
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
fromioimportBytesIO
99
importitertools
1010
importos
11+
importos.pathasosp
1112
importpathlib
1213
importpickle
1314
importsys
@@ -17,22 +18,22 @@
1718
importpytest
1819

1920
fromgitimport (
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
fromgit.excimport (
3839
BadObject,
@@ -43,8 +44,6 @@
4344
fromgit.utilimportbin_to_hex,cygpath,join_path_native,rmfile,rmtree
4445
fromtest.libimportTestBase,fixture,with_rw_directory,with_rw_repo
4546

46-
importos.pathasosp
47-
4847

4948
defiter_flatten(lol):
5049
foritemsinlol:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp