[Functions] Fixed typos:

- 'gettext' should be used as '_' is not defined
- Identical expressions should not be used on both sides of a binary operator.
pull/29/head
Ashesh Vashi 2020-04-08 13:00:01 +05:30
parent 29ae6dfbf6
commit 14f21921bb
1 changed files with 4 additions and 3 deletions

View File

@ -398,8 +398,9 @@ class FunctionView(PGChildNodeView, DataTypeReader, SchemaDiffObjectCompare):
if fnid is not None:
if len(rset['rows']) == 0:
return gone(
_("Could not find the specified %s.").format(
self.node_type)
gettext("Could not find the specified %s.").format(
self.node_type
)
)
row = rset['rows'][0]
@ -624,7 +625,7 @@ class FunctionView(PGChildNodeView, DataTypeReader, SchemaDiffObjectCompare):
arg = ''
if argmode and argmode:
if argmode:
arg += argmode + " "
if argname:
arg += argname + " "