~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-10 01:37:42 UTC
  • mto: (6213.1.40 feature-flags)
  • mto: This revision was merged to the branch mainline in revision 6353.
  • Revision ID: jelmer@samba.org-20111210013742-c80qgy82onx8o1b3
Simplify.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1112
1112
 
1113
1113
    @classmethod
1114
1114
    def from_string(cls, format_string):
1115
 
        ret = cls()
1116
1115
        if format_string != cls.get_format_string():
1117
1116
            raise ValueError("Invalid format header %r" % format_string)
1118
 
        return ret
 
1117
        return cls()
1119
1118
 
1120
1119
    @classmethod
1121
1120
    def _find_format(klass, registry, kind, format_string):