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

Commit94caeb1

Browse files
committed
Shorthand return-expression
1 parenta3ac7d5 commit94caeb1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎tests/helpers/ptrack_helpers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,7 @@ def is_enterprise():
100100
stdout=subprocess.PIPE,
101101
stderr=subprocess.PIPE
102102
)
103-
ifb'enterprise'inp.communicate()[0]:
104-
returnTrue
105-
else:
106-
returnFalse
107-
103+
returnb'postgrespro.ru'inp.communicate()[0]
108104

109105
classProbackupException(Exception):
110106
def__init__(self,message,cmd):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp