/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/rio.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
import re
36
36
 
37
 
from bzrlib import osutils
38
 
from bzrlib.iterablefile import IterableFile
 
37
from . import osutils
 
38
from .iterablefile import IterableFile
39
39
 
40
40
# XXX: some redundancy is allowing to write stanzas in isolation as well as
41
41
# through a writer object.
375
375
 
376
376
 
377
377
try:
378
 
    from bzrlib._rio_pyx import (
 
378
    from ._rio_pyx import (
379
379
        _read_stanza_utf8,
380
380
        _read_stanza_unicode,
381
381
        _valid_tag,
382
382
        )
383
 
except ImportError, e:
 
383
except ImportError as e:
384
384
    osutils.failed_to_load_extension(e)
385
 
    from bzrlib._rio_py import (
 
385
    from ._rio_py import (
386
386
       _read_stanza_utf8,
387
387
       _read_stanza_unicode,
388
388
       _valid_tag,