Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94caeb1

Browse files
committed
Shorthand return-expression
1 parent a3ac7d5 commit 94caeb1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/helpers/ptrack_helpers.py

+1-5
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-
if b'enterprise' in p.communicate()[0]:
104-
return True
105-
else:
106-
return False
107-
103+
return b'postgrespro.ru' in p.communicate()[0]
108104

109105
class ProbackupException(Exception):
110106
def __init__(self, message, cmd):

0 commit comments

Comments
 (0)