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

Commitf544da1

Browse files
committed
Shorthand return-expression
1 parent55d3fa8 commitf544da1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎tests/helpers/ptrack_helpers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ def is_nls_enabled():
109109
stdout=subprocess.PIPE,
110110
stderr=subprocess.PIPE
111111
)
112-
ifb'enable-nls'inp.communicate()[0]:
113-
returnTrue
114-
else:
115-
returnFalse
112+
returnb'enable-nls'inp.communicate()[0]
116113

117114

118115
classProbackupException(Exception):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp