Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
usr
/
local
/
lib
/
python3.6
/
site-packages
/
future
/
standard_library
/
__pycache__
✏️
Editing: __init__.cpython-36.pyc
3 ��jf�m � @ sN d Z ddlmZmZmZ ddlZddlZejdikr<ddlZ nddl Z ddl Z ddlZddlZej d�Zejej�Zej� Zeje� eje� ejej� ddlmZmZ edd d dg�Zdd dddddddejdjk r�dndddddd�Zeeej� �ee�@ �dk�st �dkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~dgZ!G dBdC� dCe"�Z#G dDdE� dEe"�Z$e�r�eeej� �eej%�@ �dk�s�t �dFdG� Z&dHdI� Z'dJdK� Z(G dLdM� dMe"�Z)dNdO� Z*dPdQ� Z+dRdS� Z,dTdU� Z-d�dWdX�Z.dYdZ� Z/d[d\� Z0e1ed]��s�i e_2d^d_� Z3d�d`da�Z4dbdc� Z5G ddde� dee"�Z6dd dddddddfdddddgZ7dgdh� Z8dS )�a� Python 3 reorganized the standard library (PEP 3108). This module exposes several standard library modules to Python 2 under their new Python 3 names. It is designed to be used as follows:: from future import standard_library standard_library.install_aliases() And then these normal Py3 imports work on both Py3 and Py2:: import builtins import copyreg import queue import reprlib import socketserver import winreg # on Windows only import test.support import html, html.parser, html.entities import http, http.client, http.server import http.cookies, http.cookiejar import urllib.parse, urllib.request, urllib.response, urllib.error, urllib.robotparser import xmlrpc.client, xmlrpc.server import _thread import _dummy_thread import _markupbase from itertools import filterfalse, zip_longest from sys import intern from collections import UserDict, UserList, UserString from collections import OrderedDict, Counter, ChainMap # even on Py2.6 from subprocess import getoutput, getstatusoutput from subprocess import check_output # even on Py2.6 from multiprocessing import SimpleQueue (The renamed modules and functions are still available under their old names on Python 2.) This is a cleaner alternative to this idiom (see http://docs.pythonsprints.com/python3_porting/py-porting.html):: try: import queue except ImportError: import Queue as queue Limitations ----------- We don't currently support these modules, but would like to:: import dbm import dbm.dumb import dbm.gnu import collections.abc # on Py33 import pickle # should (optionally) bring in cPickle on Python 2 � )�absolute_import�division�print_functionN� � Z future_stdlib)�PY2�PY3�test�urllib�pickle�dbm�builtins�copyreg�queue�socketserver�configparser�reprlib�multiprocessing�winreg�_thread� � _dummy_threadZxmlrpc�html�http�_markupbase)�__builtin__�copy_reg�Queuezfuture.moves.socketserver�ConfigParser�reprzmultiprocessing.queues�_winreg�thread�dummy_threadzfuture.moves.xmlrpczfuture.moves.htmlzfuture.moves.httpzfuture.moves._markupbase�collections�UserList�UserDict� UserString�ChainMap�future.backports.misc� itertools�filterfalse�ifilterfalse�zip_longest�izip_longest�sys�internr �SimpleQueue�multiprocessing.queues�re�ASCII�stat�ST_MODE�base64�encodebytes�encodestring�decodebytes�decodestring� subprocess� getoutput�commands�getstatusoutput�check_output�math�ceil�OrderedDict�Counter�count�recursive_repr� functools� cmp_to_keyc @ s8 e Zd ZdZdZdd� Zddd�Zdd � Zd d d�ZdS )�RenameImportzX A class for import hooks mapping Py3 module names etc. to the Py2 equivalents. Tc C sj || _ t|j� �t|j� �@ }t|�dkrFtt|j� ��t|j� �ksNtd��tdd� |j� D ��| _dS )z� Pass in a dictionary-like object mapping from old names to new names. E.g. {'ConfigParser': 'configparser', 'cPickle': 'pickle'} r z/Ambiguity in renaming (handler not implemented)c s s | ]\}}||fV qd S )N� )�.0�old�newrI rI �B/tmp/pip-build-s1i5078x/future/future/standard_library/__init__.py� <genexpr> s z(RenameImport.__init__.<locals>.<genexpr>N) � old_to_new�set�keys�values�len�AssertionError�dict�items� new_to_old)�selfrO ZbothrI rI rM �__init__� s zRenameImport.__init__Nc C s$ t dd� | jD ��}||kr | S d S )Nc S s g | ]}|j d �d �qS )�.r )�split)rJ �srI rI rM � <listcomp> s z,RenameImport.find_module.<locals>.<listcomp>)rP rW )rX �fullname�pathZnew_base_namesrI rI rM �find_module s zRenameImport.find_modulec C sP d }|t jkrt j| S || jkr8| j| }| j|�}n | j|�}|t j|<