ftp.storlines("STOR "+Name,StringIO(Inhalt))
Verfasst: Dienstag 17. August 2004, 08:38
Code: Alles auswählen
ftp.storlines("STOR "+Name,StringIO(Inhalt))
Code: Alles auswählen
TypeError: 'module' object is not callable
__doc__ = 'Inappropriate argument type.'
__getitem__ = <bound method TypeError.__getitem__ of <exceptions.TypeError instance at 0x82366a4>>
__init__ = <bound method TypeError.__init__ of <exceptions.TypeError instance at 0x82366a4>>
__module__ = 'exceptions'
__str__ = <bound method TypeError.__str__ of <exceptions.TypeError instance at 0x82366a4>>
args = ("'module' object is not callable",)
In einem anderen Fall mache ich es mit
Code: Alles auswählen
ftp.storlines("STOR "+Name, open( Datei, "r" ) )