PEP-8 fixes.

This commit is contained in:
Dave Page 2019-06-20 14:30:31 +01:00
parent 9dbb74367d
commit 644624eabe

View File

@ -1767,7 +1767,8 @@ class BaseTableView(PGChildNodeView, BasePartitionTable):
return internal_server_error(errormsg=res) return internal_server_error(errormsg=res)
old_col_data = res['rows'][0] old_col_data = res['rows'][0]
old_col_data['cltype'], old_col_data['hasSqrBracket'] = \ old_col_data['cltype'], \
old_col_data['hasSqrBracket'] = \
self._cltype_formatter(old_col_data['cltype']) self._cltype_formatter(old_col_data['cltype'])
old_col_data = \ old_col_data = \
BaseTableView.convert_length_precision_to_string( BaseTableView.convert_length_precision_to_string(
@ -1792,7 +1793,8 @@ class BaseTableView(PGChildNodeView, BasePartitionTable):
# old length and precision # old length and precision
if 'elemoid' in old_col_data and 'cltype' not in c: if 'elemoid' in old_col_data and 'cltype' not in c:
length, precision, typeval = \ length, precision, typeval = \
self.get_length_precision(old_col_data['elemoid']) self.get_length_precision(
old_col_data['elemoid'])
# If we have length & precision both # If we have length & precision both
if length and precision: if length and precision:
@ -1833,9 +1835,9 @@ class BaseTableView(PGChildNodeView, BasePartitionTable):
if not precision: if not precision:
old_col_data['attprecision'] = None old_col_data['attprecision'] = None
old_col_data['cltype'] = DataTypeReader.parse_type_name( old_col_data['cltype'] = \
old_col_data['cltype'] DataTypeReader.parse_type_name(
) old_col_data['cltype'])
if int(old_col_data['attlen']) == -1: if int(old_col_data['attlen']) == -1:
old_col_data['attlen'] = None old_col_data['attlen'] = None