$20 GRAYBYTE WORDPRESS FILE MANAGER $27

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python34/lib64/python3.4/idlelib/__pycache__/

HOME
Current File : /opt/alt/python34/lib64/python3.4/idlelib/__pycache__//ScriptBinding.cpython-34.pyc
�
e f}�@s�dZddlZddlZddlZddljZddlmZddl	m
Z
ddlmZdZGdd�d�Z
dS)	a?Extension to execute code outside the Python shell window.

This adds the following commands:

- Check module does a full syntax check of the current module.
  It also runs the tabnanny to catch any inconsistent tabs.

- Run module executes the module's code in the __main__ namespace.  The window
  must have been saved previously. The module is added to sys.modules, and is
  also added to the __main__ namespace.

XXX GvR Redesign this interface (yet again) as follows:

- Present a dialog box for ``Run Module''

- Allow specify command line arguments in the dialog box

�N)�PyShell)�idleConf)�
macosxSupporta/Error: Inconsistent indentation detected!

1) Your indentation is outright incorrect (easy to fix), OR

2) Your indentation mixes tabs and spaces.

To fix case 2, change all tabs to spaces by using Edit->Select All followed by Format->Untabify Region and specify the number of columns used by each tab.
c@s�eZdZddddgfgZdd�Zd	d
�Zdd�Zd
d�Zdd�Zdd�Z	dd�Z
dd�Zdd�ZdS)�
ScriptBindingZrunN�Check Module�<<check-module>>�
Run Module�<<run-module>>cCsS||_|jj|_|jj|_tj�rO|jjjd|j�ndS)Nz<<run-module-event-2>>)�editwin�flist�rootr�	isCocoaTk�
text_frameZbind�_run_module_event)�selfr
�r�:/opt/alt/python34/lib64/python3.4/idlelib/ScriptBinding.py�__init__/s
	zScriptBinding.__init__cCs@|j�}|sdS|j|�s)dS|j|�s<dSdS)N�break)�getfilename�checksyntax�tabnanny)r�event�filenamerrr�check_module_event9sz ScriptBinding.check_module_eventcCs�tj|���}ytjtj|j��Wn�tjk
r�}zB|j\}\}}|jj	|�|j
dd|�dSWYdd}~XnRtjk
r�}z/|jj	|j��|j
dt
�dSWYdd}~XnXWdQXdS)NzTabnanny Tokenizing ErrorzToken Error: %sFzTab/space errorT)�tokenize�openrZprocess_tokens�generate_tokens�readline�
TokenError�argsr
Zgotoline�errorboxZNannyNagZ
get_lineno�indent_message)rr�f�msgZmsgtxt�lineno�startZnagrrrrBs	zScriptBinding.tabnannyc
Cs�|jj�|_}|j�}|j|j�t|d��}|j�}WdQXd|kr�|jdd�}|jdd�}n|r�|dt	d�kr�|d}n|j
}|j}|jddd�z�yt
||d	�SWn�tttfk
r�}z�t|d
d�p'|p'd}	t|d
d�p?d}
t|dd�pWd}|dkrs|
d7}
nd|
d|df}|j||�|jdd|	�dSWYdd}~XnXWd|j|�XdS)N�rbs
s
s
�ZERRORz1.0�end�execr$�z<no detail available>r%�offsetrz0.0 + %d lines + %d chars�SyntaxErrorz%-20sF���)rZ
open_shell�shellZget_warning_streamZset_warning_stream�stderrr�read�replace�ordr
�textZ
tag_remove�compiler-�
OverflowError�
ValueError�getattrZcolorize_syntax_errorr!)
rrr/Zsaved_streamr#�sourcer
r4�valuer$r%r,�posrrrrTs4
		
zScriptBinding.checksyntaxcsCtj�r2�jjjd�fdd��dS�j|�SdS)N��cs�jjjd�S)Nz<<run-module-event-2>>)r
rZevent_generater)rrr�<lambda>zsz0ScriptBinding.run_module_event.<locals>.<lambda>r)rr
r
r�afterr)rrr)rr�run_module_eventrs
zScriptBinding.run_module_eventcCs�|j�}|sdS|j|�}|s/dS|j|�sBdS|jj}tjr||jddd|jj	|��nt
jj|�}|j
djd|d|��|j|�|j|�dS)aXRun the module after setting up the environment.

        First check the syntax.  If OK, make sure the shell is active and
        then transfer the arguments, set the run environment's working
        directory to the directory of the module being executed and also
        add that directory to its sys.path if not already included.
        rZwith_cwdFrazif 1:
            __file__ = {filename!r}
            import sys as _sys
            from os.path import basename as _basename
            if (not _sys.argv or
                _basename(_sys.argv[0]) != _basename(__file__)):
                _sys.argv = [__file__]
            import os as _os
            _os.chdir({dirname!r})
            del _sys, _basename, _os
            
�dirname)rrrr/�interprZuse_subprocessZrestart_subprocessr
Z_filename_to_unicode�os�pathr@Z
runcommand�formatZprepend_syspathZruncode)rrr�coderAr@rrrrs$		


zScriptBinding._run_module_eventcCs�|jjj}|jj�s�tjddddd�}|r[|r[|jjjd�q�|j�}|jjj	�|r�|jjjd�|jjj}q�d}n|S)a�Get source filename.  If not saved, offer to save (or create) file

        The debugger requires a source file.  Make sure there is one, and that
        the current version of the source buffer has been saved.  If the user
        declines to save or cancels the Save As dialog, return None.

        If the user has configured IDLE for Autosave, the file will be
        silently saved if it already exists and is dirty.

        �mainZGeneral�autosave�type�boolN)
r
�iorZ	get_savedrZ	GetOptionZsave�ask_save_dialogr4�	focus_set)rrrG�confirmrrrr�s	zScriptBinding.getfilenamec	Cs?dd
d}tjddd|dtjd	|jj�}|S)NzSource Must Be Saved
�� zOK to Save?�titlezSave Before Run or Check�message�default�parentz     )�tkMessageBoxZaskokcancelZOKr
r4)rr$rMrrrrK�s	zScriptBinding.ask_save_dialogcCs0tj||d|jj�|jjj�dS)NrS)rTZ	showerrorr
r4rL)rrPrQrrrr!�szScriptBinding.errorbox)rr)rr	)
�__name__�
__module__�__qualname__Zmenudefsrrrrr?rrrKr!rrrrr(s
	
)r)�__doc__rBrrZtkinter.messageboxZ
messageboxrTZidlelibrZidlelib.configHandlerrrr"rrrrr�<module>s



Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.33 AM
root / linksafe
0755
AutoComplete.cpython-34.pyc
7.534 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoComplete.cpython-34.pyo
7.534 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoCompleteWindow.cpython-34.pyc
11.269 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoCompleteWindow.cpython-34.pyo
11.214 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoExpand.cpython-34.pyc
3.108 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoExpand.cpython-34.pyo
3.108 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Bindings.cpython-34.pyc
3.085 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Bindings.cpython-34.pyo
3.085 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTipWindow.cpython-34.pyc
5.244 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTipWindow.cpython-34.pyo
5.244 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTips.cpython-34.pyc
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTips.cpython-34.pyo
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ClassBrowser.cpython-34.pyc
8.377 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ClassBrowser.cpython-34.pyo
8.377 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CodeContext.cpython-34.pyc
6.041 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CodeContext.cpython-34.pyo
6.001 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ColorDelegator.cpython-34.pyc
7.837 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ColorDelegator.cpython-34.pyo
7.837 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Debugger.cpython-34.pyc
15.305 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Debugger.cpython-34.pyo
15.305 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Delegator.cpython-34.pyc
1.075 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Delegator.cpython-34.pyo
1.075 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
EditorWindow.cpython-34.pyc
51.43 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
EditorWindow.cpython-34.pyo
51.336 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FileList.cpython-34.pyc
3.555 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FileList.cpython-34.pyo
3.525 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FormatParagraph.cpython-34.pyc
6.224 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FormatParagraph.cpython-34.pyo
6.224 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
GrepDialog.cpython-34.pyc
5.531 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
GrepDialog.cpython-34.pyo
5.531 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
HyperParser.cpython-34.pyc
7.259 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
HyperParser.cpython-34.pyo
7.259 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IOBinding.cpython-34.pyc
14.099 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IOBinding.cpython-34.pyo
14.099 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IdleHistory.cpython-34.pyc
3.616 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IdleHistory.cpython-34.pyo
3.616 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiCall.cpython-34.pyc
16.229 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiCall.cpython-34.pyo
16.166 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiStatusBar.cpython-34.pyc
1.898 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiStatusBar.cpython-34.pyo
1.898 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ObjectBrowser.cpython-34.pyc
5.395 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ObjectBrowser.cpython-34.pyo
5.395 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
OutputWindow.cpython-34.pyc
4.44 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
OutputWindow.cpython-34.pyo
4.44 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ParenMatch.cpython-34.pyc
6.319 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ParenMatch.cpython-34.pyo
6.319 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PathBrowser.cpython-34.pyc
4.021 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PathBrowser.cpython-34.pyo
4.021 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Percolator.cpython-34.pyc
4.03 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Percolator.cpython-34.pyo
3.861 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyParse.cpython-34.pyc
11.256 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyParse.cpython-34.pyo
10.824 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyShell.cpython-34.pyc
47.078 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyShell.cpython-34.pyo
46.942 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteDebugger.cpython-34.pyc
14.312 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteDebugger.cpython-34.pyo
14.173 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteObjectBrowser.cpython-34.pyc
1.962 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteObjectBrowser.cpython-34.pyo
1.962 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ReplaceDialog.cpython-34.pyc
6.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ReplaceDialog.cpython-34.pyo
6.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RstripExtension.cpython-34.pyc
1.327 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RstripExtension.cpython-34.pyo
1.327 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScriptBinding.cpython-34.pyc
6.916 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScriptBinding.cpython-34.pyo
6.916 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScrolledList.cpython-34.pyc
5.636 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScrolledList.cpython-34.pyo
5.636 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialog.cpython-34.pyc
3.282 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialog.cpython-34.pyo
3.282 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialogBase.cpython-34.pyc
7.532 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialogBase.cpython-34.pyo
7.532 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchEngine.cpython-34.pyc
7.298 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchEngine.cpython-34.pyo
7.298 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
StackViewer.cpython-34.pyc
5.487 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
StackViewer.cpython-34.pyo
5.487 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ToolTip.cpython-34.pyc
3.957 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ToolTip.cpython-34.pyo
3.957 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
TreeWidget.cpython-34.pyc
15.29 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
TreeWidget.cpython-34.pyo
15.29 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
UndoDelegator.cpython-34.pyc
11.539 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
UndoDelegator.cpython-34.pyo
11.539 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WidgetRedirector.cpython-34.pyc
6.952 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WidgetRedirector.cpython-34.pyo
6.952 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WindowList.cpython-34.pyc
3.161 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WindowList.cpython-34.pyo
3.161 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ZoomHeight.cpython-34.pyc
1.369 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ZoomHeight.cpython-34.pyo
1.369 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyc
0.424 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyo
0.424 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__main__.cpython-34.pyc
0.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__main__.cpython-34.pyo
0.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
aboutDialog.cpython-34.pyc
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
aboutDialog.cpython-34.pyo
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configDialog.cpython-34.pyc
47.839 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configDialog.cpython-34.pyo
47.839 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHandler.cpython-34.pyc
26.104 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHandler.cpython-34.pyo
26.104 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHelpSourceEdit.cpython-34.pyc
5.657 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHelpSourceEdit.cpython-34.pyo
5.657 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configSectionNameDialog.cpython-34.pyc
3.849 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configSectionNameDialog.cpython-34.pyo
3.849 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dynOptionMenuWidget.cpython-34.pyc
2.38 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dynOptionMenuWidget.cpython-34.pyo
2.38 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
help.cpython-34.pyc
9.521 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
help.cpython-34.pyo
9.521 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idle.cpython-34.pyc
0.359 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idle.cpython-34.pyo
0.359 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idlever.cpython-34.pyc
0.538 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idlever.cpython-34.pyo
0.538 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
keybindingDialog.cpython-34.pyc
10.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
keybindingDialog.cpython-34.pyo
10.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
macosxSupport.cpython-34.pyc
7.135 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
macosxSupport.cpython-34.pyo
7.022 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
rpc.cpython-34.pyc
20.514 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
rpc.cpython-34.pyo
20.413 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
run.cpython-34.pyc
12.35 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
run.cpython-34.pyo
12.301 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
tabbedpages.cpython-34.pyc
16.737 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
tabbedpages.cpython-34.pyo
16.737 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
textView.cpython-34.pyc
3.26 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
textView.cpython-34.pyo
3.26 KB
17 Apr 2024 5.10 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF