/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/views.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:
26
26
 
27
27
import re
28
28
 
29
 
from bzrlib import (
 
29
from . import (
30
30
    errors,
31
31
    osutils,
32
32
    )
180
180
            try:
181
181
                try:
182
182
                    view_content = self.tree._transport.get_bytes('views')
183
 
                except errors.NoSuchFile, e:
 
183
                except errors.NoSuchFile as e:
184
184
                    self._current, self._views = None, {}
185
185
                else:
186
186
                    keywords, self._views = \
238
238
                    raise ValueError("failed to deserialize views line %s",
239
239
                        text)
240
240
            return keywords, views
241
 
        except ValueError, e:
 
241
        except ValueError as e:
242
242
            raise ValueError("failed to deserialize views content %r: %s"
243
243
                % (view_content, e))
244
244