|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/django/core/management/commands/ |
Upload File : |
� r�\c @ sF d d l Z d d l m Z d d l m Z d e f d � � YZ d S( i����N( t NoArgsCommand( t make_optiont Commandc B s� e Z d d g Z e j e d d d d d d d �e d d d d d d d �e d d d d d d d e d d d d �f Z d Z e Z d � Z d � Z d � Z d � Z d � Z d d � Z d � Z RS( t ipythont bpythons --plaint actiont store_truet destt plaint helps9 Tells Django to use plain Python, not IPython or bpython.s --no-startupt no_startupsa When using plain Python, ignore the PYTHONSTARTUP environment variable and ~/.pythonrc.py script.s -is --interfacet storet typet choicet choicest interfacesX Specify an interactive interpreter interface. Available options: "ipython" and "bpython"sd Runs a Python interactive interpreter. Tries to use IPython or bpython, if one of them is available.c C s- d d l m } | d g � } | j � d S( s Start IPython pre-0.11i����( t IPShellt argvN( t IPython.ShellR t mainloop( t selfR t shell( ( sG /tmp/pip-install-XxeQeY/django/django/core/management/commands/shell.pyt _ipython_pre_011 s c C s: d d l m } | j � } | j d g � | j � d S( s Start IPython pre-1.0.0i����( t TerminalIPythonAppR N( t IPython.frontend.terminal.ipappR t instancet initializet start( R R t app( ( sG /tmp/pip-install-XxeQeY/django/django/core/management/commands/shell.pyt _ipython_pre_100 s c C s! d d l m } | d g � d S( s Start IPython >= 1.0i����( t start_ipythonR N( t IPythonR ( R R ( ( sG /tmp/pip-install-XxeQeY/django/django/core/management/commands/shell.pyt _ipython# s c C sV xC | j | j | j f D]) } y | � Wn t k r= q Xd Sq Wt d � � d S( s Start any version of IPythonNs No IPython( R R R t ImportError( R t ip( ( sG /tmp/pip-install-XxeQeY/django/django/core/management/commands/shell.pyR ( s c C s d d l } | j � d S( Ni����( R t embed( R R ( ( sG /tmp/pip-install-XxeQeY/django/django/core/management/commands/shell.pyR 4 s c C s[ | r | g n | j } x6 | D]. } y t | | � � SWq t k rL q Xq Wt � d S( N( t shellst getattrR! ( R R t available_shells( ( sG /tmp/pip-install-XxeQeY/django/django/core/management/commands/shell.pyt run_shell8 s c J s� d d l m } | � | j d e � } | j d e � } | j d d � } y# | r_ e � n | j d | � Wn8e k r�d d l } i } y d d l } Wn e k r� n3 Xd d l } | j | j | � j � | j d � | s�x� e j j d � d f D]� } | sqn e j j | � } e j j | � sCqn y9 e | � �'