Shorthand return-expression

This commit is contained in:
d.lepikhova
2022-06-29 22:18:07 +05:00
parent 55d3fa8979
commit f544da1ecd
+1 -4
View File
@@ -109,10 +109,7 @@ def is_nls_enabled():
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
if b'enable-nls' in p.communicate()[0]:
return True
else:
return False
return b'enable-nls' in p.communicate()[0]
class ProbackupException(Exception):