Changeset 289


Ignore:
Timestamp:
02/26/13 10:22:59 (10 years ago)
Author:
bas
Message:

implemented nonzero for PBS dictionary, closes #33

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PBSQuery.py

    r285 r289  
    419419        return iter(self.data.keys())
    420420
     421    def __nonzero__(self):
     422        if self.data:
     423            return True
     424        else:
     425            return False
     426
    421427    def uniq(self, list):
    422428        """Filter out unique items of a list"""
Note: See TracChangeset for help on using the changeset viewer.