/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: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

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"