123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- import platform
- import re
- import sys
- import subprocess
- armv6l = bool(platform.machine() == 'armv6l')
- armv7l = bool(platform.machine() == 'armv7l')
- ppc64le = bool(platform.machine() == 'ppc64le')
- aarch64 = bool(platform.machine() == 'aarch64')
- if sys.platform == 'darwin':
- osx105 = b'10.5.' in subprocess.check_output('sw_vers')
- else:
- osx105 = False
- print('sys.version:', sys.version)
- print('sys.platform:', sys.platform)
- print('tuple.__itemsize__:', tuple.__itemsize__)
- if sys.platform == 'win32':
- assert 'MSC v.19' in sys.version
- print('sys.maxunicode:', sys.maxunicode)
- print('platform.architecture:', platform.architecture())
- print('platform.python_version:', platform.python_version())
- import _bisect
- import _codecs_cn
- import _codecs_hk
- import _codecs_iso2022
- import _codecs_jp
- import _codecs_kr
- import _codecs_tw
- import _collections
- import _csv
- import _ctypes
- import _ctypes_test
- import _decimal
- import _elementtree
- import _functools
- import _hashlib
- import _heapq
- import _io
- import _json
- import _locale
- import _lsprof
- import _lzma
- import _multibytecodec
- import _multiprocessing
- import _random
- import _socket
- import _sqlite3
- import _ssl
- import _struct
- import _testcapi
- import array
- import audioop
- import binascii
- import bz2
- import cmath
- import datetime
- import itertools
- import lzma
- import math
- import mmap
- import operator
- import parser
- import pyexpat
- import select
- import time
- import test
- import test.support
- import unicodedata
- import zlib
- from os import urandom
- import os
- t = 100 * b'Foo '
- assert lzma.decompress(lzma.compress(t)) == t
- if sys.platform != 'win32':
- fedora_pat = re.compile('.*\.fc\d+\.aarch64')
- if not (ppc64le or armv7l):
- import _curses
- import _curses_panel
- if not fedora_pat.match(platform.release()):
- import crypt
- import fcntl
- import grp
- import nis
- import readline
- import resource
- import syslog
- import termios
- if not (armv6l or armv7l or ppc64le or osx105 or aarch64):
- import tkinter
- import turtle
- import _tkinter
- print('TK_VERSION: %s' % _tkinter.TK_VERSION)
- print('TCL_VERSION: %s' % _tkinter.TCL_VERSION)
- if sys.platform == 'win32':
- TCLTK_VER = '8.6'
- else:
- TCLTK_VER = os.getenv("tk")
- assert _tkinter.TK_VERSION == _tkinter.TCL_VERSION == TCLTK_VER
|