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

Commitcc77e6b

Browse files
committed
tc-helper: fix minor contexlib abuse
1 parent08e0d5f commitcc77e6b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎git/test/lib/helper.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@ def git_daemon_launched(base_path, ip, port):
181181
as_process=True)
182182
# yes, I know ... fortunately, this is always going to work if sleep time is just large enough
183183
time.sleep(0.5* (1+is_win))
184-
185-
yield
186-
187184
exceptExceptionasex:
188185
msg=textwrap.dedent("""
189186
Launching git-daemon failed due to: %s
@@ -203,8 +200,10 @@ def git_daemon_launched(base_path, ip, port):
203200
CYGWIN has no daemon, but if one exists, it gets along fine (but has also paths problems).""")
204201
log.warning(msg,ex,ip,port,base_path,base_path,exc_info=1)
205202

206-
yield
203+
yield# OK, assume daemon started manually.
207204

205+
else:
206+
yield# Yield outside try, to avoid catching
208207
finally:
209208
ifgd:
210209
try:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp