/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/rio.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
from . import osutils
38
38
from .iterablefile import IterableFile
39
 
from .sixish import (
40
 
    text_type,
41
 
    )
42
39
 
43
40
# XXX: some redundancy is allowing to write stanzas in isolation as well as
44
41
# through a writer object.
139
136
            raise ValueError("invalid tag %r" % (tag,))
140
137
        if isinstance(value, bytes):
141
138
            value = value.decode('ascii')
142
 
        elif isinstance(value, text_type):
 
139
        elif isinstance(value, str):
143
140
            pass
144
141
        else:
145
142
            raise TypeError("invalid type for rio value: %r of type %s"