diff options
Diffstat (limited to 'psutil/_common.py')
-rw-r--r-- | psutil/_common.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/psutil/_common.py b/psutil/_common.py index 6d430388..f9ba714e 100644 --- a/psutil/_common.py +++ b/psutil/_common.py @@ -43,7 +43,7 @@ PY3 = sys.version_info[0] == 3 __all__ = [ # constants 'FREEBSD', 'BSD', 'LINUX', 'NETBSD', 'OPENBSD', 'MACOS', 'OSX', 'POSIX', - 'SUNOS', 'WINDOWS', + 'SUNOS', 'WINDOWS', 'DRAGONFLYBSD', 'ENCODING', 'ENCODING_ERRS', 'AF_INET6', # connection constants 'CONN_CLOSE', 'CONN_CLOSE_WAIT', 'CONN_CLOSING', 'CONN_ESTABLISHED', @@ -80,7 +80,8 @@ OSX = MACOS # deprecated alias FREEBSD = sys.platform.startswith("freebsd") OPENBSD = sys.platform.startswith("openbsd") NETBSD = sys.platform.startswith("netbsd") -BSD = FREEBSD or OPENBSD or NETBSD +DRAGONFLYBSD = sys.platform.startswith("dragonfly") +BSD = FREEBSD or OPENBSD or NETBSD or DRAGONFLYBSD SUNOS = sys.platform.startswith(("sunos", "solaris")) AIX = sys.platform.startswith("aix") |