[MERGE] make bzr script un-importable

Aaron Bentley aaron at aaronbentley.com
Fri Mar 14 03:09:42 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Benjamin Peterson wrote:
> Hi Bazaar Developers,
> I was reading through Bazaar's source, and I noticed these lines in the
> main bzr script:
> if __name__ == "__main__":
>     # run bzr
> else:
>     pass    # should this give an error? - it can't be used as a lib
> This bundle makes importing the bzr script raise an ImportError.

bb:comment

Since the bzr script doesn't have a py extension, it's impossible to
import anyhow.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH2ex10F+nu1YWqI0RAqK+AJ9QAvWFnBamgAH0xxKxlbFKRzMhUwCfYcyb
hfjBmoO/h69uQ4cRIIh1Dj8=
=jjLN
-----END PGP SIGNATURE-----



More information about the bazaar mailing list