From f3b172a7afa393c59592fe09651affcb8515a4d2 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 23 Jun 2004 16:05:34 +0000 Subject: [PATCH] Version 1.0.1. Fixed a bug - base_name have been changed to transport. git-svn-id: file:///home/phd/archive/SVN/mc-extfs/trunk@22 1a6e6372-1aea-0310-bd00-dc960550e1df --- obexftp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/obexftp b/obexftp index 6fb0b2b..8d4906d 100755 --- a/obexftp +++ b/obexftp @@ -52,9 +52,9 @@ directories quickly. """ -__version__ = "1.0.0" -__revision__ = "$Id: obexftp,v 1.11 2004/06/19 17:34:24 phd Exp $" -__date__ = "$Date: 2004/06/19 17:34:24 $"[7:-2] +__version__ = "1.0.1" +__revision__ = "$Id: obexftp,v 1.12 2004/06/23 16:05:34 phd Exp $" +__date__ = "$Date: 2004/06/23 16:05:34 $"[7:-2] __author__ = "Oleg Broytmann " __copyright__ = "Copyright (C) 2004 PhiloSoft Design" @@ -90,10 +90,10 @@ Put it in /usr/lib/mc/extfs. For more information read the source!""" % ( def setup_transport(): """Setup transport parameters for the obexftp program""" transport_file = open(sys.argv[2], 'r') - line = transport_file.readline().strip() + line = transport_file.readline() transport_file.close() - parts = line.split() + parts = line.strip().split() transport = parts[0].lower() if transport == "bluetooth": @@ -103,7 +103,7 @@ def setup_transport(): elif transport == "irda": return "-i" else: - error("Unknown transport '%s'; expected 'bluetooth', 'tty' or 'irda'" % base_filename) + error("Unknown transport '%s'; expected 'bluetooth', 'tty' or 'irda'" % transport) # Parse ObexFTP XML directory listings -- 2.39.5