|
@@ -12,14 +12,19 @@ from .base import SaveFile, SyncFile, sync_dir, fdatasync
|
|
from .base import swidth, API_VERSION
|
|
from .base import swidth, API_VERSION
|
|
from .posix import process_alive, get_process_id, local_pid_alive
|
|
from .posix import process_alive, get_process_id, local_pid_alive
|
|
|
|
|
|
|
|
+
|
|
|
|
+OS_API_VERSION = API_VERSION
|
|
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 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, API_VERSION
|
|
|
|
|
|
+ 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 acl_get, acl_set
|
|
from .freebsd import acl_get, acl_set
|
|
- from .freebsd import swidth, API_VERSION
|
|
|
|
|
|
+ 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 acl_get, acl_set
|
|
from .darwin import acl_get, acl_set
|
|
- from .darwin import swidth, API_VERSION
|
|
|
|
|
|
+ from .darwin import swidth
|