summaryrefslogtreecommitdiff
path: root/user/acpilight/python3.patch
blob: ab0ffe61f266dec1725d7a99429406251328eec8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- acpilight-1.0/xbacklight	2017-02-23 21:03:30.000000000 +0000
+++ acpilight-1.0/xbacklight	2018-01-13 08:52:42.400000000 +0000
@@ -1,9 +1,8 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 # xbacklight: control backlight and led brightness on linux using the sys
 #             filesystem with a backward-compatibile user interface
 # Copyright(c) 2016-2017 by wave++ "Yuri D'Elia" <wavexx@thregr.org>
 # -*- coding: utf-8 -*-
-from __future__ import print_function, division, generators
 
 APP_DESC = "control backlight brightness"
 SYS_PATH = ["/sys/class/backlight", "/sys/class/leds"]
@@ -99,7 +98,7 @@
 
     # set current operating controller
     if args.ctrl is None:
-        ctrl = Controller(next(iter(ctrls.values())))
+        ctrl = Controller(next(iter(list(ctrls.values()))))
     else:
         if args.ctrl not in ctrls:
             error("unknown controller '{}'".format(args.ctrl))