[Twisted-Python] Suggested t.f.ftp patch for Windows users

Alan McIntyre alan at norfolkgraphics.com
Sun Jan 11 19:07:12 EST 2004


Ooops. :)  I see t.p.ftp has changed a bit since I last looked, so just 
please just ignore my ignorance.  I suppose I should spend some more 
time keeping up with such things. ;)

Alan McIntyre wrote:
> Hi all,
> 
> I ran into a small problem with the FTP module under Windows. It imports 
> pwd and grp, which are not available on Windows.
> 
> Since these modules are only used within the FTPAnonymousShell class, I 
> moved the import to the methods that actually need it.  There's probably 
> something more appropriate that could be done with them, but I'm not 
> sure if there's a Windows analog for these modules.
> 
> I attached a patch (obtained with GNU diff, default options) just in 
> case it's useful to someone else.
> 
> Thanks,
> Alan
> 
> 
> ------------------------------------------------------------------------
> 
> 1177,1178d1176
> < import pwd, grp
> < 
> 1243a1242,1243
> 
>>        import pwd
>>        
> 
> 1259a1260,1261
> 
>>        import pwd
>>





More information about the Twisted-Python mailing list