mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Move Windows libs to libs/windows
This commit is contained in:
parent
3975aaceb2
commit
3a692c94a5
684 changed files with 4 additions and 1 deletions
20
libs/win/jaraco/windows/util.py
Normal file
20
libs/win/jaraco/windows/util.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import ctypes
|
||||
|
||||
|
||||
def ensure_unicode(param):
|
||||
try:
|
||||
param = ctypes.create_unicode_buffer(param)
|
||||
except TypeError:
|
||||
pass # just return the param as is
|
||||
return param
|
||||
|
||||
|
||||
class Extended(object):
|
||||
"Used to add extended capability to structures"
|
||||
def __eq__(self, other):
|
||||
return memoryview(self) == memoryview(other)
|
||||
|
||||
def __ne__(self, other):
|
||||
return memoryview(self) != memoryview(other)
|
Loading…
Add table
Add a link
Reference in a new issue