##// END OF EJS Templates
Remove useless iter() call
Takafumi Arakaki -
Show More
@@ -321,7 +321,7 b' class HistoryAccessor(Configurable):'
321 params += (n,)
321 params += (n,)
322 cur = self._run_sql(sqlform, params, raw=raw, output=output)
322 cur = self._run_sql(sqlform, params, raw=raw, output=output)
323 if n is not None:
323 if n is not None:
324 cur = iter(reversed(list(cur)))
324 return reversed(list(cur))
325 return cur
325 return cur
326
326
327 def get_range(self, session, start=1, stop=None, raw=True,output=False):
327 def get_range(self, session, start=1, stop=None, raw=True,output=False):
General Comments 0
You need to be logged in to leave comments. Login now