Re: Python 2 to 3 conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 19, 2024 at 12:43 PM Go Canes <letsgonhlcanes0@xxxxxxxxx> wrote:
>
> On Tue, Nov 19, 2024 at 11:57 AM Patrick O'Callaghan
> <pocallaghan@xxxxxxxxx> wrote:
> > > If it's genuinely small, it might be trivial to rewrite?
> >
> > You can find the script at:
> >
> > https://github.com/zepalmer/script-vdr
> >
>

*** vdr.og      2024-11-19 12:39:44.413184228 -0500
--- vdr 2024-11-19 12:59:08.937069435 -0500
***************
*** 77,78 ****
--- 77,79 ----
     p = subprocess.Popen(["wmctrl","-G","-l","-p"],
+                          text=True,
                          stdin=None,stdout=subprocess.PIPE,
***************
*** 87,89 ****
         if not line: continue
!         cols = re.split('\s+', line, maxsplit=8)
         window_id = cols[0]
--- 88,90 ----
         if not line: continue
!         cols = re.split(r'\s+', line, maxsplit=8)
         window_id = cols[0]
***************
*** 91,93 ****
         window_pid = int(cols[2])
!         title = cols[8].decode('utf-8')
         if window_pid != pid:
--- 92,94 ----
         window_pid = int(cols[2])
!         title = cols[8]
         if window_pid != pid:

The above changes will allow --save to run without error.
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux