#
# This code is covered under the terms of the GNU Library General
# Public License as described in the bup LICENSE file.
-import errno, os, sys, stat, time, platform, pwd, grp
+import errno, os, sys, stat, time, pwd, grp
from cStringIO import StringIO
from bup import vint, xstat
from bup.drecurse import recursive_dirlist
from bup.xstat import utime, lutime
xattr = None
-if 'Linux' in platform.system():
+if sys.platform.startswith('linux'):
try:
import xattr
except ImportError:
xattr = None
posix1e = None
-if not 'CYGWIN' in platform.system():
+if not sys.platform.startswith('cygwin'):
try:
import posix1e
except ImportError: