diff --git a/adodbapi/adodbapi.py b/adodbapi/adodbapi.py index 4e85bc525..369f7587c 100644 --- a/adodbapi/adodbapi.py +++ b/adodbapi/adodbapi.py @@ -1019,7 +1019,7 @@ def executemany(self, operation, seq_of_parameters): Return values are not defined. """ - self.messages = list() + self.messages = [] total_recordcount = 0 self.prepare(operation) @@ -1043,7 +1043,7 @@ def _fetch(self, limit=None): return if self.rs.State == adc.adStateClosed or self.rs.BOF or self.rs.EOF: - return list() + return [] if limit: # limit number of rows retrieved ado_results = self.rs.GetRows(limit) else: # get all rows diff --git a/adodbapi/apibase.py b/adodbapi/apibase.py index 749c378d3..d22173c46 100644 --- a/adodbapi/apibase.py +++ b/adodbapi/apibase.py @@ -564,7 +564,7 @@ def __next__(self): yield self._getValue(n) def __repr__(self): # create a human readable representation - taglist = sorted(list(self.rows.columnNames.items()), key=lambda x: x[1]) + taglist = sorted(self.rows.columnNames.values()) s = "