diff options
author | ERYoung11 <78834571+ERYoung11@users.noreply.github.com> | 2022-08-31 21:48:06 -0500 |
---|---|---|
committer | ERYoung11 <78834571+ERYoung11@users.noreply.github.com> | 2022-08-31 21:48:06 -0500 |
commit | 2850c8331050e502039cd9ca71407026fe2f409f (patch) | |
tree | c65fc1374b366dbb60d4b189237e300da864671a /pgcli | |
parent | f5669e756b0d741d3287647bc1f62606762bd55b (diff) |
black'd the code.
Diffstat (limited to 'pgcli')
-rw-r--r-- | pgcli/pgexecute.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pgcli/pgexecute.py b/pgcli/pgexecute.py index 85a52c0d..8f2968d6 100644 --- a/pgcli/pgexecute.py +++ b/pgcli/pgexecute.py @@ -308,22 +308,22 @@ class PGExecute: # sql parse doesn't split on a comment first + special # so we're going to do it - - sqltemp=[] - sqlarr=[] + + sqltemp = [] + sqlarr = [] if statement.startswith("--"): - sqltemp=statement.split("\n") + sqltemp = statement.split("\n") sqlarr.append(sqltemp[0]) for i in sqlparse.split(sqltemp[1]): sqlarr.append(i) elif statement.startswith("/*"): - sqltemp=statement.split("*/") - sqltemp[0]=sqltemp[0]+"*/" + sqltemp = statement.split("*/") + sqltemp[0] = sqltemp[0] + "*/" for i in sqlparse.split(sqltemp[1]): sqlarr.append(i) else: - sqlarr = sqlparse.split(statement) + sqlarr = sqlparse.split(statement) # run each sql query for sql in sqlarr: |