/usr/lib64/python2.6/site-packages/mx/Misc
Edit: /usr/lib64/python2.6/site-packages/mx/Misc/CommandLine.pyo (18361B)
Ñò
½Hc
@ sˆ d Z d Z d Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k
Z
d „ Z d d „ Z d e
d „ Z d
„ Z d „ Z e Z e i d ƒ Z e i d
ƒ Z e i e e d „ Z e i i e i i e i i e i d „ Z d f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d f d „ ƒ YZ e Z! d „ Z" e# d j o e" ƒ n d S( s CommandLine - Get and parse command line options
NOTE: This still is very much work in progress !!!
Different version are likely to be incompatible.
TODO:
* Incorporate the changes made by (see Inbox)
* Add number range option using srange()
sò Copyright (c), 1997-2000, IKDS Marc-Andre Lemburg (mal@lemburg.com)
Copyright (c), 2000-2007, eGenix.com Software GmbH (info@egenix.com)
See the documentation for further information on copyrights,
or contact the author. All Rights Reserved.
s 1.2iÿÿÿÿNc C s¤ g } g } x | D]w } | i d j o/ | i | i ƒ | i o | i d ƒ qŠ q | i o | i | i d ƒ q | i | i ƒ q Wt i | d ƒ | f S( sP Convert the option list to a getopt flag string and long opt
list
t -t :t =t ( t prefixt appendt namet takes_argumentt stringt join( t optionst st lt o( ( s9 /usr/lib64/python2.6/site-packages/mx/Misc/CommandLine.pyt
_getopt_flags s
s >>> c C s6 d d k } | i | ƒ } | d j o
t ‚ n | S( sw Get raw input from a terminal without echoing the characters to
the terminal, e.g. for password queries.
iÿÿÿÿN( t getpasst Nonet KeyboardInterrupt( t promptR t entry( ( s9 /usr/lib64/python2.6/site-packages/mx/Misc/CommandLine.pyt invisible_input1 s
t wbc C s© | d j o t i S| d j o t i S| d j o t i S| d j o% d d k } | i | | | ƒ } n t | | ƒ } d | j o t i | d ƒ n | Sd S( s Open a file using mode.
Default mode is 'wb' meaning to open the file for writing in
binary mode. If encoding is given, I/O to and from the file is
transparently encoded using the given encoding.
Files opened for writing are chmod()ed to 0600.
t stdoutt stderrt stdiniÿÿÿÿNt wi€ ( t sysR R R R t codecst opent ost chmod( R t modet encodingR t f( ( s9 /usr/lib64/python2.6/site-packages/mx/Misc/CommandLine.pyt fileopen= s
c C s( h } x | D] } | | | i