/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/export/__init__.py

  • Committer: Aaron Bentley
  • Date: 2006-09-09 18:52:57 UTC
  • mfrom: (1996 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1997.
  • Revision ID: aaron.bentley@utoronto.ca-20060909185257-ce0ee03ee5125ff1
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    """
43
43
    global _exporters, _exporter_extensions
44
44
 
45
 
    if not _exporters.has_key(format) or override:
 
45
    if (format not in _exporters) or override:
46
46
        _exporters[format] = func
47
47
 
48
48
    for ext in extensions:
49
 
        if not _exporter_extensions.has_key(ext) or override:
 
49
        if (ext not in _exporter_extensions) or override:
50
50
            _exporter_extensions[ext] = format
51
51
 
52
52
 
90
90
    if root is None:
91
91
        root = get_root_name(dest)
92
92
 
93
 
    if not _exporters.has_key(format):
 
93
    if format not in _exporters:
94
94
        raise errors.NoSuchExportFormat(format)
95
95
    return _exporters[format](tree, dest, root)
96
96