Re: strip newline from string

2007-04-28 Thread Ian Clark
On 4/28/07, James <[EMAIL PROTECTED]> wrote: [snip] > username = getuser() > string.strip > (username) > print "username is %s" % username [snip] > > > The autoconf.txt contains two lines, which first has an ip address and > second a username. The problem I'm having is that the string.strip() do

strip newline from string

2007-04-28 Thread James
I have a program that reads as follows: #!/usr/bin/env python import string import os def ssher(): #ssher takes a port input (if none entered, it defaults to 2024) and def connector(): #connector checks to see if the autoconfigure file exists. If so, it uses that #for information for where the