Irc

Latest version: v20.5.0

Safety actively analyzes 682449 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 13 of 19

8.1

===

* Issue 15: Added client support for ISUPPORT directives on server
connections. Now, each ServerConnection has a `features` attribute which
reflects the features supported by the server. See the docs for
`irc.features` for details about the implementation.

8.0.1

=====

* Issue 14: Fix errors when handlers of the same priority are added under
Python 3. This also fixes the unintended behavior of allowing handlers of
the same priority to compare as unequal.

8.0

===

This release brings several backward-incompatible changes to the scheduled
commands.

* Refactored implementation of schedule classes. No longer do they override
the datetime constructor, but now only provide suitable classmethods for
construction in various forms.
* Removed backward-compatible references from irc.client.
* Remove 'arguments' parameter from scheduled commands.

Clients that reference the schedule classes from irc.client or that construct
them from the basic constructor will need to update to use the new class
methods::

- DelayedCommand -> DelayedCommand.after
- PeriodicCommand -> PeriodicCommand.after

Arguments may no longer be passed to the 'function' callback, but one is
encouraged instead to use functools.partial to attach parameters to the
callback. For example::

DelayedCommand.after(3, func, ('a', 10))

becomes::

func = functools.partial(func, 'a', 10)
DelayedCommand.after(3, func)

This mode puts less constraints on the both the handler and the caller. For
example, a caller can now pass keyword arguments instead::

func = functools.partial(func, name='a', quantity=10)
DelayedCommand.after(3, func)

Readability, maintainability, and usability go up.

7.1.2

=====

* Issue 13: TypeError on Python 3 when constructing PeriodicCommand (and thus
execute_every).

7.1.1

=====

* Fixed regression created in 7.0 where PeriodicCommandFixedDelay would only
cause the first command to be scheduled, but not subsequent ones.

7.1

===

* Moved scheduled command classes to irc.schedule module. Kept references for
backwards-compatibility.

Page 13 of 19

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.