Changeset 839:00ccc7e3a02c

Show
Ignore:
Timestamp:
2010-02-10 21:50:05 (6 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Don't pollute package namespace with error classes. See announcement
http://codespeak.net/pipermail/ftputil/2009q1/000256.html .
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ftputil.py

    r807 r839  
    1 # Copyright (C) 2002-2009, Stefan Schwarzer <sschwarzer@sschwarzer.net> 
     1# Copyright (C) 2002-2010, Stefan Schwarzer <sschwarzer@sschwarzer.net> 
    22# All rights reserved. 
    33# 
     
    8989import ftputil_version 
    9090 
    91 # make exceptions available in this module for backwards compatibilty; 
    92 #  you really should access them via the `ftp_error` module, not from here 
    93 from ftp_error import FTPError, FTPIOError, FTPOSError, \ 
    94                       InaccessibleLoginDirError, InternalError, \ 
    95                       ParserError, PermanentError, RootDirError, \ 
    96                       TemporaryError, TimeShiftError 
    97  
    98 # it's recommended to use the error classes via the `ftp_error` module; 
    99 #  they're only here for backward compatibility 
    100 __all__ = ['FTPError', 'FTPOSError', 'TemporaryError', 
    101            'PermanentError', 'ParserError', 'FTPIOError', 
    102            'RootDirError', 'FTPHost'] 
     91 
     92__all__ = ['FTPHost'] 
    10393 
    10494__version__ = ftputil_version.__version__