blob: 3ed0ce28cbb3390090608304f2621f6a15bb8d0b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
System versions
===============
Mailman system information is available through the System object, which
implements the ISystem interface.
>>> from mailman.interfaces.system import ISystem
>>> from mailman.core.system import system
>>> from zope.interface.verify import verifyObject
>>> verifyObject(ISystem, system)
True
The Mailman version is available via the system object.
>>> print system.mailman_version
GNU Mailman ...
The Python version running underneath is also available via the system
object.
# The entire python_version string is variable, so this is the best test
# we can do.
>>> import sys
>>> system.python_version == sys.version
True
|