Changeset 190:166654a407e8


Ignore:
Timestamp:
May 29, 2002, 1:42:12 PM (17 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Tags:
release1_1_3
Convert:
svn:778c30c8-61e0-0310-89d4-fe2f97a467b2/trunk@196
Message:
FTPHost.__init__: the Microsoft-style parser now is also invoked for
    a server status containing "Bliss_Server Microsoft" (Carlo Bifulco).
FTPHost: renamed _parse_robin_line to _parse_ms_line.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil.py

    r186 r190  
    3030# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    3131
    32 # $Id: ftputil.py,v 1.92 2002/04/20 23:05:59 schwa Exp $
     32# $Id: ftputil.py,v 1.93 2002/05/29 11:42:12 schwa Exp $
    3333
    3434"""
     
    398398        except PermanentError:
    399399            response = ''
    400         if response.find('ROBIN Microsoft') != -1:
    401             self._parser = self._parse_robin_line
     400        if response.find('ROBIN Microsoft') != -1 or \
     401           response.find('Bliss_Server Microsoft') != -1:
     402            self._parser = self._parse_ms_line
    402403        else:
    403404            self._parser = self._parse_unix_line
     
    675676        return result
    676677
    677     def _parse_robin_line(self, line):
     678    def _parse_ms_line(self, line):
    678679        """
    679680        Return _Stat instance corresponding to the given text line
Note: See TracChangeset for help on using the changeset viewer.