Changeset 1596 for trunk/python


Ignore:
Timestamp:
07/06/09 11:14:03 (15 years ago)
Author:
Malte Marquarding
Message:

Return self or other in case of union with empty selector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/selector.py

    r1576 r1596  
    205205        Merge two selections.
    206206        """
     207        if self.is_empty():
     208            return other
     209        elif other.is_empty():
     210            return self
    207211        union = selector()
    208212        gets = [[self._getscans(), other._getscans(), union._setscans],
Note: See TracChangeset for help on using the changeset viewer.