Changeset 839:00ccc7e3a02c
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r807
|
r839
|
|
| 1 | | # Copyright (C) 2002-2009, Stefan Schwarzer <sschwarzer@sschwarzer.net> |
| | 1 | # Copyright (C) 2002-2010, Stefan Schwarzer <sschwarzer@sschwarzer.net> |
| 2 | 2 | # All rights reserved. |
| 3 | 3 | # |
| … |
… |
|
| 89 | 89 | import ftputil_version |
| 90 | 90 | |
| 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'] |
| 103 | 93 | |
| 104 | 94 | __version__ = ftputil_version.__version__ |