how to avoid leading white spaces

2011-06-01 Thread rakesh kumar
Hi

i have a file which contains data

//ACCDJ EXEC DB2UNLDC,DFLID=&DFLID,PARMLIB=&PARMLIB,
// UNLDSYST=&UNLDSYST,DATABAS=MBQV1D0A,TABLE='ACCDJ   '
//ACCT  EXEC DB2UNLDC,DFLID=&DFLID,PARMLIB=&PARMLIB,
// UNLDSYST=&UNLDSYST,DATABAS=MBQV1D0A,TABLE='ACCT'
//ACCUM EXEC DB2UNLDC,DFLID=&DFLID,PARMLIB=&PARMLIB,
// UNLDSYST=&UNLDSYST,DATABAS=MBQV1D0A,TABLE='ACCUM   '
//ACCUM1EXEC DB2UNLDC,DFLID=&DFLID,PARMLIB=&PARMLIB,
// UNLDSYST=&UNLDSYST,DATABAS=MBQV1D0A,TABLE='ACCUM1  '

i want to cut the white spaces which are in between single quotes after
TABLE=.

for example :
   'ACCT[spaces] '
   'ACCUM   '
   'ACCUM1 '
the above is the output of another python script but its having a leading
spaces.

any help is much appreciate.





-- 

Thanks and  regards
@@ Be An Innovator @@
Rakesh Kumar A
+917428243738
[image: cid:[email protected]]
<>-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Coding style article with interesting section on white space

2005-01-29 Thread Rakesh Kumar
Thanx Nick

-- 
http://mail.python.org/mailman/listinfo/python-list


freeze.py - resolving dependencies

2008-02-25 Thread Rakesh Kumar
hi -
  I wrote a wxWidgets program and was trying to convert the python
script to native python code.

After running freeze.py on my source file - I am getting the following
unknown modules error.


Warning: unknown modules remain: _bisect _heapq _locale _random
_socket _ssl _struct _tkinter array binascii cStringIO collections
fcntl itertools math operator pyexpat readline select strop termios
time wx._controls_ wx._core_ wx._gdi_ wx._misc_ wx._windows_


I had contacted the wxPython about the dependencies of modules wx.* .

But can somebody please help me with details regarding the other
modules that we are discussing about.


I am using python 2.5 with Mandriva Linux 2008 - wxWidgets 2.8

Thanks for the help.
-- 
http://mail.python.org/mailman/listinfo/python-list


cx_Freeze : LookupError: unknown encoding: ascii

2008-03-01 Thread Rakesh Kumar
Hi -
   I created a binary using the cx_Freeze utility on Linux (wxWidgets
2.8 / Python 2.5/ Mandriva 2008 ).

  When I tried to run the binary - this is the error that I got on the
console.

  File "gdataapi.py", line 44, in __init__
self.service.ProgrammaticLogin()
  File "/opt/software/gdata-py/src/gdata/service.py", line 284, in
ProgrammaticLogin
auth_connection.putrequest('POST', '/accounts/ClientLogin')
  File "/usr/lib/python2.5/httplib.py", line 806, in putrequest
host_enc = self.host.encode("ascii")
LookupError: unknown encoding: ascii


Can somebody point to some clues about options that need to be passed
to FreezePython API to get the right executable.

Thanks for the help.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: cx_Freeze : LookupError: unknown encoding: ascii

2008-03-02 Thread Rakesh Kumar
On Mar 1, 3:41 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> > Can somebody point to some clues about options that need to be passed
> > to FreezePython API to get the right executable.
>
> You need to tell it to include the encodings.ascii module.
>
> Regards,
> Martin


Thanks Martin.

Adding something like

./freeze --include-modules=encodings.ascii,encodings.utf_8 

fixed the issue.
-- 
http://mail.python.org/mailman/listinfo/python-list