/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 breezy/foreign.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    )
33
33
""")
34
34
 
 
35
 
35
36
class VcsMapping(object):
36
37
    """Describes the mapping between the semantics of Bazaar and a foreign VCS.
37
38
 
109
110
    """
110
111
 
111
112
    def __init__(self, foreign_revid, mapping, *args, **kwargs):
112
 
        if not "inventory_sha1" in kwargs:
 
113
        if "inventory_sha1" not in kwargs:
113
114
            kwargs["inventory_sha1"] = b""
114
115
        super(ForeignRevision, self).__init__(*args, **kwargs)
115
116
        self.foreign_revid = foreign_revid
138
139
        :param foreign_revid: Foreign revision id.
139
140
        :return: Dictionary mapping string keys to string values.
140
141
        """
141
 
        return { }
 
142
        return {}
142
143
 
143
144
    def serialize_foreign_revid(self, foreign_revid):
144
145
        """Serialize a foreign revision id for this VCS.
229
230
    def __init__(self, mapping):
230
231
        self.mapping = mapping
231
232
        super(ForeignBranch, self).__init__()
232