~disper-dev/disper/trunk

« back to all changes in this revision

Viewing changes to src/xrandr/core.py

  • Committer: dev-disper at engen
  • Date: 2013-04-25 10:36:01 UTC
  • Revision ID: dev-disper@willem.engen.nl-20130425103601-r06izvnvo5wdoe7b
first step to supporting python3

Show diffs side-by-side

added added

removed removed

Lines of Context:
713
713
 
714
714
    def get_output_by_name(self, name):
715
715
        """Returns the output of the screen with the given name or None"""
716
 
        if self.outputs.has_key(name):
 
716
        if name in self.outputs:
717
717
            return self.outputs[name]
718
718
        else:
719
719
            return None