/usr/lib64/python2.6/site-packages/mx/Misc
NameSizeModeActions
Cache.py67380644editdlrm
Cache.pyc64820644editdlrm
Cache.pyo64820644editdlrm
CommandLine.py187060644editdlrm
CommandLine.pyc183610644editdlrm
CommandLine.pyo183610644editdlrm
ConfigFile.py295410644editdlrm
ConfigFile.pyc330040644editdlrm
ConfigFile.pyo330040644editdlrm
Cookie.py56250644editdlrm
Cookie.pyc57070644editdlrm
Cookie.pyo57070644editdlrm
COPYRIGHT10300644editdlrm
CSV.py185200644editdlrm
CSV.pyc181440644editdlrm
CSV.pyo181440644editdlrm
ExitFunctions.py23080644editdlrm
ExitFunctions.pyc28600644editdlrm
ExitFunctions.pyo28600644editdlrm
FileLock.py124190644editdlrm
FileLock.pyc120250644editdlrm
FileLock.pyo120250644editdlrm
LazyModule.py44000644editdlrm
LazyModule.pyc42440644editdlrm
LazyModule.pyo42440644editdlrm
LICENSE45870644editdlrm
Namespace.py154550644editdlrm
Namespace.pyc180510644editdlrm
Namespace.pyo180510644editdlrm
OrderedMapping.py131070644editdlrm
OrderedMapping.pyc150530644editdlrm
OrderedMapping.pyo150530644editdlrm
PackageTools.py116810644editdlrm
PackageTools.pyc113460644editdlrm
PackageTools.pyo113460644editdlrm
__init__.py00644editdlrm
__init__.pyc1410644editdlrm
__init__.pyo1410644editdlrm
Edit: /usr/lib64/python2.6/site-packages/mx/Misc/CSV.pyc (18144B)
Ñò ÄÅVHc @sÎdZdZdaddkZddkZddkZddkZddkZddkZ ddk l Z dei fd„ƒYZ dfd „ƒYZ d fd „ƒYZd „Zed jo eƒndS(s CSV (Comma Separated Values) table format reader/writer. The two classes read and write CSV data. It's a fairly simple format for data exchange with nearly all spreadsheets, databases, organizers, etc. The reader class is built to be easy on the data passed in: small errors like missing commas don't cause an exception (but do set a variable to indicate this). Data is converted from CSV text into a an internal format which can then be extracted into different forms of table representation. The writer writes standard CSV files and knows about quoting rules, separator handling etc. so that interfacing to spreadsheets and databases should pose no problem. Both classes can be subclassed to enhance/modify their behaviour. Copyright (c) 2000-2005, Marc-Andre Lemburg; mailto:mal@lemburg.com Copyright (c) 2000-2008, eGenix.com Software GmbH; mailto:info@egenix.com See the documentation for further information on copyrights, or contact the author. All Rights Reserved. s1.0iiÿÿÿÿN(t TextToolstErrorcBseZRS((t__name__t __module__(((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pyR!stReadercBseZdZdZdZdZdZdZe i dedƒZ dd„Z d„Z ddeid„Zddd„Zd „Zd „Zd „Zd „Zd „Zeieieid„Zdd„Zeid„Zei d„Z!d„Z"d„Z#RS(is,; s"([^"]|"")*"|[^"s \015\012]*cCs/|dj otid|dƒ|_ndS(Ns"([^"]|"")*"|[^"s \015\012]*(tNonetretcompilet parseitem(tselft separators((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pyt__init__Cs cCs(d|_d|_d|_d|_dS(s+ Empty the object and reset errors iN(Rtlinestwidthterrorstcolumns(R ((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pytflushIs   icCs…t|ƒ|jot|dƒ}n|iƒ}|iƒ|i|ƒ|_|o|iƒn|dj o|i|ƒndS(s· Read a file. If header is true (default), the first line of input is interpreted as list of column names. If columns is given as list of strings, these columns names are used. If both header and columns are used, columns overrides the columns set by reading the header line. This is useful to override header information from the input data. trbN( ttypetopentreadtcloset_decodeR tprocess_headerRt set_columns(R tfiletheaderRt StringTypettext((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pytloadRs   cCsI|i|ƒ|_|o|iƒn|dj o|i|ƒndS(s¾ Read the given text If header is true (default), the first line of input is interpreted as list of column names. If columns is given as list of strings, these columns names are used. If both header and columns are used, columns overrides the columns set by reading the header line. This is useful to override header information from the input data. N(RR RRR(R RRR((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pytloadsms  cCs|i}|i}dgt|ƒ}xct|ƒD]U\}}|}t|ƒ|jo%dg|t|ƒ|t|ƒ)n|||R:R tstringR9( R R tdescR toutputtwritetcolR2R"titem((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pyt__str__Ys(        N($RRRRRER R RR RRRR RttypesRRRR$R+R4RRRR7RQR8R9R5R>RGRRMRFRNRW(((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pyR&s0        ? tWritercBs§eZd ZdZdZdZd d d„Zd„Zde i d„Z e i d„Z d e i d„Z e i ed „Zd „Zeid „Ze ied „ZRS(R6t,s cCs8|dj o ||_n|dj o ||_ndS(N(Rt separatortlineend(R R[R\((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pyR |s   cCsd|_d|_dS(s8 Flush the data currently stored in the writer. R6N(RRR(R ((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pyRƒs icCsŽ||ijo | odS|io td‚n||_|oF|io td‚n|i|ƒ}|||iƒ|i|_ndS(s× Sets the output columns. If header is true, a column name line is added to the output. Columns can only be set once per session and must be set prior to adding any data. columns has to be a list of column names. It is assured that no more than len(columns) items are written for each row. All rows are filled up with "" entries to have an equal number of items. Ns/cannot write columns more than once per sessions)cannot add header to already written data(RRRt_quoteR[R\(R RRR9t headerline((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pyRŠs     c Csù|i}|ot|ƒ}nttt|ƒƒ}dgt|ƒ}|i}xxt|ƒD]j\}}||| ƒ}t|ƒ|jo%dg|t|ƒ|t|ƒ)n|||iƒ||tObjcBseZRS((RR(((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pyRtvsi tidRgs Read File:i(RqRr(RqRr((sidsstr(sidsstr(tsysRRR$R+RR>RYRbRmRR%RftrangeRuRgR:RltargvRR( RvtstrtlttwR,RttdataR"R=tf((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pyt_testCsx                                           t__main__(t__doc__t __version__RBRRQRvRXt exceptionstmx.Tools.NewBuiltinstmxRt StandardErrorRRRYRR(((s1/usr/lib64/python2.6/site-packages/mx/Misc/CSV.pyts< ÿIÕ S