|
@@ -16,18 +16,17 @@ OS_API_VERSION = API_VERSION
|
|
|
|
|
|
if not sys.platform.startswith(('win32', )):
|
|
if not sys.platform.startswith(('win32', )):
|
|
from .posix import process_alive, local_pid_alive
|
|
from .posix import process_alive, local_pid_alive
|
|
|
|
+ # posix swidth implementation works for: linux, freebsd, darwin, openindiana, cygwin
|
|
|
|
+ from .posix import swidth
|
|
|
|
|
|
if sys.platform.startswith('linux'): # pragma: linux only
|
|
if sys.platform.startswith('linux'): # pragma: linux only
|
|
from .linux import API_VERSION as OS_API_VERSION
|
|
from .linux import API_VERSION as OS_API_VERSION
|
|
from .linux import acl_get, acl_set
|
|
from .linux import acl_get, acl_set
|
|
from .linux import set_flags, get_flags
|
|
from .linux import set_flags, get_flags
|
|
from .linux import SyncFile
|
|
from .linux import SyncFile
|
|
- from .linux import swidth
|
|
|
|
elif sys.platform.startswith('freebsd'): # pragma: freebsd only
|
|
elif sys.platform.startswith('freebsd'): # pragma: freebsd only
|
|
from .freebsd import API_VERSION as OS_API_VERSION
|
|
from .freebsd import API_VERSION as OS_API_VERSION
|
|
from .freebsd import acl_get, acl_set
|
|
from .freebsd import acl_get, acl_set
|
|
- from .freebsd import swidth
|
|
|
|
elif sys.platform == 'darwin': # pragma: darwin only
|
|
elif sys.platform == 'darwin': # pragma: darwin only
|
|
from .darwin import API_VERSION as OS_API_VERSION
|
|
from .darwin import API_VERSION as OS_API_VERSION
|
|
from .darwin import acl_get, acl_set
|
|
from .darwin import acl_get, acl_set
|
|
- from .darwin import swidth
|
|
|