File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,10 +208,7 @@ def __init__(
208208 self .output_file = None
209209 self .pgspecial = PGSpecial ()
210210
211- self .hide_named_query_text = (
212- "hide_named_query_text" in c ["main" ]
213- and c ["main" ].as_bool ("hide_named_query_text" )
214- )
211+ self .hide_named_query_text = "hide_named_query_text" in c ["main" ] and c ["main" ].as_bool ("hide_named_query_text" )
215212 self .explain_mode = False
216213 self .multi_line = c ["main" ].as_bool ("multi_line" )
217214 self .multiline_mode = c ["main" ].get ("multi_line_mode" , "psql" )
@@ -321,11 +318,7 @@ def toggle_named_query_quiet(self):
321318 def _is_named_query_execution (self , text ):
322319 """Check if the command is a named query execution (\n <name>)."""
323320 text = text .strip ()
324- return (
325- text .startswith ("\\ n " )
326- and not text .startswith ("\\ ns " )
327- and not text .startswith ("\\ nd " )
328- )
321+ return text .startswith ("\\ n " ) and not text .startswith ("\\ ns " ) and not text .startswith ("\\ nd " )
329322
330323 def register_special_commands (self ):
331324 self .pgspecial .register (
You can’t perform that action at this time.
0 commit comments