diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2018-04-17 02:25:59 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2018-04-17 02:25:59 +0000 |
commit | 8e41995ddbb56175eb00995ab0f7f750e5bde2da (patch) | |
tree | 299a876025e8fd6c701e82ffd1236ecb2ae8a2a0 /user/acpilight/python3.patch | |
parent | 8520e5d42ea95a71d7a67c142d7a1abc76c2a98d (diff) | |
parent | 2ae7465964126c09aa2e318e27d37769126c8fa9 (diff) | |
download | packages-8e41995ddbb56175eb00995ab0f7f750e5bde2da.tar.gz packages-8e41995ddbb56175eb00995ab0f7f750e5bde2da.tar.bz2 packages-8e41995ddbb56175eb00995ab0f7f750e5bde2da.tar.xz packages-8e41995ddbb56175eb00995ab0f7f750e5bde2da.zip |
Merge branch 'acpilight' into 'master'
user/acpilight: new package
See merge request !24
Diffstat (limited to 'user/acpilight/python3.patch')
-rw-r--r-- | user/acpilight/python3.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/user/acpilight/python3.patch b/user/acpilight/python3.patch new file mode 100644 index 000000000..ab0ffe61f --- /dev/null +++ b/user/acpilight/python3.patch @@ -0,0 +1,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)) |