[Pkg-bazaar-commits] ./bzr-gtk/unstable r207: Import BzrError before using it

Aaron Bentley abentley at panoramicfeedback.com
Fri Apr 10 07:49:43 UTC 2009


------------------------------------------------------------
revno: 207
committer: Aaron Bentley <abentley at panoramicfeedback.com>
branch nick: gtk
timestamp: Mon 2007-06-25 11:27:00 -0400
message:
  Import BzrError before using it
modified:
  __init__.py
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py	2007-06-12 13:49:07 +0000
+++ b/__init__.py	2007-06-25 15:27:00 +0000
@@ -39,6 +39,7 @@
         # get the message out any way we can
         from warnings import warn as warning
     if bzrlib_version < desired:
+        from bzrlib.errors import BzrError
         warning('Installed bzr version %s is too old to be used with bzr-gtk'
                 ' %s.' % (bzrlib.__version__, __version__))
         raise BzrError('Version mismatch: %r' % version_info)



More information about the Pkg-bazaar-commits mailing list