[issue6822] Error calling .storlines from ftplib

2010-08-18 Thread Ayman

Ayman  added the comment:

I do not agree with Antoine.  For binary transfer, another method is called, 
and it does work fine.  However, storelines would be called for ASCII mode, in 
which encoding and decoding should be done by the FTP program.  ASCII mode 
would translate files, so a file loaded on a PC may not be identical to the 
same file when loaded on a Mac.

--
nosy: +aymanhs

___
Python tracker 
<http://bugs.python.org/issue6822>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6822] Error calling .storlines from ftplib

2010-08-24 Thread Ayman

Ayman  added the comment:

My other 2 cents worth.

Actually that is my main issue.  Things used to work in 2.x, and
"suddenly" refused to work after my 3.x upgrade.

I'm not saying it worked means it is correct, but the Exception being
thrown does not look right.  I think we should always have core
libraries work out of the box, and have workarounds even if it's not
"our" error.

 Ayman

--

___
Python tracker 
<http://bugs.python.org/issue6822>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6789] ftplib storelines does not honor strings returned in fp.readline

2009-08-27 Thread Ayman

New submission from Ayman :

in ftplibs.storlines, a call is done on what should be a Text stream:
fp.readline()
This would work in pre 3.x as it returns bytes but now that readlines
returns a string, the call at lines 477 would fail:

  File "C:\Python31\lib\ftplib.py", line 477, in storlines
if buf[-1] in B_CRLF: buf = buf[:-1]
TypeError: Type str doesn't support the buffer API

The readline call should then be encoded().

--
components: Library (Lib)
messages: 91997
nosy: aymanhs
severity: normal
status: open
title: ftplib storelines does not honor strings returned in fp.readline
type: crash
versions: Python 3.1

___
Python tracker 
<http://bugs.python.org/issue6789>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10729] fwbackups python lib error

2010-12-18 Thread Ayman Elmasry

New submission from Ayman Elmasry :

I hope this topic is not completely unfitting here.

fwbackups error after backup attempt which concerned python lib:

ERROR : Traceback (most recent call last):   File 
"/usr/lib/python2.4/site-packages/fwbackups/operations/backup.py", line 698, in 
start  pkgListfiles = self.createPkgLists()   File 
"/usr/lib/python2.4/site-packages/fwbackups/operations/backup.py", line 85, in 
createPkgLists   fh = tempfile.NamedTemporaryFile(suffix='.txt', prefix="%s - 
tmp" % _('rpm - Package list'), delete=False)  TypeError: NamedTemporaryFile() 
got an unexpected keyword argument 'delete'

--
components: Library (Lib)
messages: 124276
nosy: elmasry-ayman
priority: normal
severity: normal
status: open
title: fwbackups python lib error
versions: Python 2.5

___
Python tracker 
<http://bugs.python.org/issue10729>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10729] fwbackups python lib error

2010-12-18 Thread Ayman Elmasry

Ayman Elmasry  added the comment:

thank you

--

___
Python tracker 
<http://bugs.python.org/issue10729>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com