1
0
mirror of https://github.com/gryf/pyrandr.git synced 2025-12-19 13:38:00 +01:00

Added python3 support

This commit is contained in:
2017-10-15 12:19:28 +02:00
parent 04b9c33365
commit d6ba2bdc66
2 changed files with 22 additions and 6 deletions

View File

@@ -90,7 +90,7 @@ class Organizer(object):
in_output = False
for line in xrandr.split('\n'):
for line in xrandr.decode().split('\n'):
match = DISPLAY_RE.match(line)
if match:
data = match.groupdict()
@@ -113,7 +113,7 @@ class Organizer(object):
def output_list(self):
for name in sorted(self._outputs.keys()):
print self._outputs[name]
print(self._outputs[name])
def set_single(self, out_name):
pass