Celelibi
847e5a14d6
python: add flush() to Stdout
...
Python sometime calls flush() on sys.stdout or sys.stderr.
In particular, it might do so when an exception is raised. This fixes
the second error message that was generated in such cases.
Signed-off-by: Celelibi <celelibi@gmail.com >
2023-04-03 12:29:22 -05:00
DjLegolas
6da8f97e37
fix addons load in python2
2022-05-07 11:34:47 -05:00
Patrick
dd167b4c83
python: Fix API break in hook_timer()
...
Closes #2691
2022-04-15 13:43:22 -05:00
Patrick Griffis
6fd8a8f9bf
python: Open all scripts with utf-8 encoding
2021-10-02 09:49:17 -05:00
Alexandre Jousset
734d888210
python: Fix off by one range
...
The range goes from 31 to 1 inclusive (#2391 ).
2021-05-28 19:39:44 -05:00
A_D
7abeb10cf1
python: plugin cleanup and refactor
2019-01-02 18:50:10 -05:00
linuxdaemon
a5a727122b
python: Make sure help() doesn't cause hexchat to hang ( #2290 )
...
* Make sure `help()` doesn't cause hexchat to hang
Replace `pydoc.help` with a copy of `pydoc.Helper` with an empty
`StringIO` instead of stdin
* Handle BytesIO vs StringIO on 2.7
2018-12-27 14:46:02 -05:00
linuxdaemon
f7713a6a64
python: Make the plugins table dynamically sized ( #2291 )
...
Adjust the width of the columns depending on the length of the data in
each element
2018-12-26 17:15:25 -05:00
A_D
3ebfa83fdd
python: Made sure to set sys.argv if it is not set. fixes #2282
2018-12-26 16:58:46 -05:00
Patrick Griffis
ed55330153
python: Fix console not eating commands
2018-12-05 19:45:30 -05:00
A_D
a2ff661d40
python: Various cffi fixes
...
- fixed /py exec behaviour
- fixed hexchat.unload_hook() failing when passed a hook id
- fixed get_list() calls in python3
2018-11-09 18:36:59 -05:00
Patrick Griffis
706f9bca82
python: Rewrite with CFFI
2018-11-09 18:36:59 -05:00