~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai/arch/__init__.py

  • Committer: Robert Collins
  • Date: 2005-09-13 12:39:26 UTC
  • mto: (147.2.6) (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: robertc@robertcollins.net-20050913123926-b72242bdacc1ae52
create the output directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# arch-tag: david@allouche.net - 2003-11-24 15:35:19 050584000
 
2
# Copyright (C) 2003 David Allouche <david@allouche.net>
 
3
#
 
4
#    This program is free software; you can redistribute it and/or modify
 
5
#    it under the terms of the GNU General Public License as published by
 
6
#    the Free Software Foundation; either version 2 of the License, or
 
7
#    (at your option) any later version.
 
8
#
 
9
#    This program is distributed in the hope that it will be useful,
 
10
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
#    GNU General Public License for more details.
 
13
#
 
14
#    You should have received a copy of the GNU General Public License
 
15
#    along with this program; if not, write to the Free Software
 
16
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
17
 
 
18
"""(the docstring for this module is overriden by _import_builtin)"""
 
19
 
 
20
__all__ = [
 
21
    'errors',
 
22
    'pathname',
 
23
    'backends',
 
24
    'tests'
 
25
    # Deprecated modules
 
26
    'arch', 'util',
 
27
    ]
 
28
 
 
29
from _output import *
 
30
from _builtin import *
 
31
from _escaping import *
 
32
 
 
33
def _import_builtin():
 
34
    # Along with the monkey-patch in mypydoc, this causes Epydoc to
 
35
    # document the public interface as part of the arch package
 
36
    # instead of the arch._builtin module (where it is actually
 
37
    # defined). This is provides no useful runtime functionality, and
 
38
    # is purely needed for documentation purposes.
 
39
    import _builtin
 
40
    import _output
 
41
    import _escaping
 
42
    global __doc__
 
43
    __doc__ = _builtin._package_doc
 
44
    all = _builtin.__all__
 
45
    all += _output.__all__
 
46
    all += _escaping.__all__
 
47
    for name in all:
 
48
        getattr(_builtin, name).__module__ = __name__
 
49
    __all__.extend(all)
 
50
    del _builtin._package_doc
 
51
    del _builtin.public
 
52
 
 
53
_import_builtin()
 
54
# Since this function is only useful for documentation, delete it so
 
55
# Epydoc will not show it in the private listing. There is really
 
56
# little point in documenting documentation-related stuff...
 
57
del _import_builtin
 
58
 
 
59
# Deprecated public stuff from before we used __all__.
 
60
from errors import ExecProblem
 
61
__all__.extend(('ExecProblem'))
 
62
from pathname import PathName, FileName, DirName
 
63
__all__.extend(('PathName', 'FileName', 'DirName'))