~free.ekanayaka/storm/infoheritance

« back to all changes in this revision

Viewing changes to storm/sqlobject.py

  • Committer: Raphael Badin
  • Date: 2011-10-17 15:59:25 UTC
  • Revision ID: raphael.badin@canonical.com-20111017155925-s9qb6dssxboq5amj
Fix handling of [0:0] slices in sqlobject.

Show diffs side-by-side

added added

removed removed

Lines of Context:
525
525
 
526
526
    def __getitem__(self, index):
527
527
        if isinstance(index, slice):
528
 
            if not index.start and not index.stop:
529
 
                return self
530
 
 
531
528
            if index.start and index.start < 0 or (
532
529
                index.stop and index.stop < 0):
533
530
                L = list(self)