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

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-
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy