VirtualMailManager/common.py
branchv0.6.x
changeset 328 85972d3ba936
parent 326 8f8d9c4c8332
child 347 586367ee042b
equal deleted inserted replaced
327:bb9ff81928f1 328:85972d3ba936
    11 import os
    11 import os
    12 import re
    12 import re
    13 import stat
    13 import stat
    14 
    14 
    15 from VirtualMailManager import ENCODING
    15 from VirtualMailManager import ENCODING
    16 from VirtualMailManager.constants import \
    16 from VirtualMailManager.constants import NOT_EXECUTABLE, NO_SUCH_BINARY
    17      NOT_EXECUTABLE, NO_SUCH_BINARY, NO_SUCH_DIRECTORY
       
    18 from VirtualMailManager.errors import VMMError
    17 from VirtualMailManager.errors import VMMError
    19 
    18 
    20 
    19 
    21 _version_re = re.compile(r'^(\d+)\.(\d+)\.(?:(\d+)|(alpha|beta|rc)(\d+))$')
    20 _version_re = re.compile(r'^(\d+)\.(\d+)\.(?:(\d+)|(alpha|beta|rc)(\d+))$')
    22 _version_level = dict(alpha=0xA, beta=0xB, rc=0xC)
    21 _version_level = dict(alpha=0xA, beta=0xB, rc=0xC)