mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
Update jaraco-windows to 3.9.2
Also updates: - importlib-metadata-0.7 - jaraco-windows - jaraco.classes-1.5 - jaraco.collections-1.6.0 - jaraco.functools-1.20 - jaraco.structures-1.1.2 - jaraco.text-1.10.1 - jaraco.ui-1.6 - more-itertools-4.3.0 - path.py-11.5.0 - six-1.12.0
This commit is contained in:
parent
aa769627bd
commit
8d43b8ea39
92 changed files with 7515 additions and 996 deletions
|
@ -2,17 +2,19 @@
|
|||
|
||||
import ctypes
|
||||
|
||||
|
||||
def ensure_unicode(param):
|
||||
try:
|
||||
param = ctypes.create_unicode_buffer(param)
|
||||
except TypeError:
|
||||
pass # just return the param as is
|
||||
pass # just return the param as is
|
||||
return param
|
||||
|
||||
|
||||
class Extended(object):
|
||||
"Used to add extended capability to structures"
|
||||
def __eq__(self, other):
|
||||
return buffer(self) == buffer(other)
|
||||
return memoryview(self) == memoryview(other)
|
||||
|
||||
def __ne__(self, other):
|
||||
return buffer(self) != buffer(other)
|
||||
return memoryview(self) != memoryview(other)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue