Date: Fri, 25 Mar 2022 13:51:04 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 6af46f44ca4c - main - sysutils/py-power: Fix build with setuptools 58.0.0+ Message-ID: <202203251351.22PDp4vC037788@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=6af46f44ca4c83135ee820649121fffa8d6335e9 commit 6af46f44ca4c83135ee820649121fffa8d6335e9 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-03-25 13:34:41 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-03-25 13:38:22 +0000 sysutils/py-power: Fix build with setuptools 58.0.0+ With hat: python --- sysutils/py-power/files/patch-2to3 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/sysutils/py-power/files/patch-2to3 b/sysutils/py-power/files/patch-2to3 new file mode 100644 index 000000000000..fc02a4134b65 --- /dev/null +++ b/sysutils/py-power/files/patch-2to3 @@ -0,0 +1,24 @@ +--- power/tests.py.orig 2012-12-07 08:20:49 UTC ++++ power/tests.py +@@ -27,10 +27,10 @@ class TestPowerManagementCommon(unittest.TestCase): + + class TestObserver(power.PowerManagementObserver): + def on_power_sources_change(self, power_management): +- print "on_power_sources_change" ++ print("on_power_sources_change") + + def on_time_remaining_change(self, power_management): +- print "on_time_remaining_change" ++ print("on_time_remaining_change") + + + if __name__ == "__main__": +@@ -38,7 +38,7 @@ if __name__ == "__main__": + p = power.PowerManagement() + p.add_observer(o) + try: +- print "Power management observer is registered" ++ print("Power management observer is registered") + import time + while True: + time.sleep(1)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203251351.22PDp4vC037788>