Ignore:
Timestamp:
07/23/17 13:06:08 (7 years ago)
Author:
obi
Message:

update python stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/lib/python2.7/platform.py

    r40094 r40658  
    651651
    652652    # VER_NT_SERVER = 3
    653     if getattr(winver, 'product_type', None) == 3:
     653    if getattr(winver, 'product', None) == 3:
    654654        release = (_WIN32_SERVER_RELEASES.get((maj, min)) or
    655655                   _WIN32_SERVER_RELEASES.get((maj, None)) or
     
    13151315
    13161316_sys_version_parser = re.compile(
    1317     r'([\w.+]+)\s*'
    1318     '\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*'
    1319     '\[([^\]]+)\]?')
     1317    r'([\w.+]+)\s*'  # "version<space>"
     1318    r'\(#?([^,]+)'  # "(#buildno"
     1319    r'(?:,\s*([\w ]*)'  # ", builddate"
     1320    r'(?:,\s*([\w :]*))?)?\)\s*'  # ", buildtime)<space>"
     1321    r'\[([^\]]+)\]?')  # "[compiler]"
    13201322
    13211323_ironpython_sys_version_parser = re.compile(
     
    13961398                repr(sys_version))
    13971399        version, buildno, builddate, buildtime, _ = match.groups()
     1400        if builddate is None:
     1401            builddate = ''
    13981402        compiler = sys.platform
    13991403
     
    14181422              match.groups()
    14191423        name = 'CPython'
    1420         builddate = builddate + ' ' + buildtime
     1424        if builddate is None:
     1425            builddate = ''
     1426        elif buildtime:
     1427            builddate = builddate + ' ' + buildtime
    14211428
    14221429    if hasattr(sys, 'subversion'):
Note: See TracChangeset for help on using the changeset viewer.