Version 1.2.0 - Released 2022-08-02
Added
- Added keywords argument to
ub.compatible
. - Added
warncls
argument toub.schedule_deprecation
. - Experimental SetDict, UDict and aliases sdict, udict.
Fixed
- Race condition on win32 in
ubelt.symlink
- Issue with
ubelt.memoize_method
where the method name and docstring were
not wrapped correctly. - The
timeout
argument now works correctly withub.cmd
whentee=True
. - Added
appname
toubelt.download
which was supposed to exist as indicated
by the docs, but didn't. - The resources used by
ubelt.cmd
are now properly closed.
Changed
ub.compatible
no longer errors on positional only functions, instead it
returns the keyword-compatible arguments.- An issue in
ubelt.symlink
with unintuitive behavior when an empty string
was given as the link path. This now raises an error. - The main implementations of
ubelt.sorted_vals
andubelt.map_vals
were
renamed toubelt.sorted_values
andubelt.map_values
, but the old names
are still available as aliases. - Positional arguments in
Path.augment
have been modified. - In
Path.augment
, deprecate overloadedsuffix
and introducestemsuffix
as an alternative. - Added cls to a lot of util_dict funcs