commit | 31067c0ac583af2304ffe52c11df8b14c6162502 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@google.com> | Thu Jun 13 02:13:23 2019 -0400 |
committer | Mike Frysinger <vapier@google.com> | Thu Jun 13 13:39:25 2019 +0000 |
tree | de1841787de87b13af60d9dd470d2544440c32d4 | |
parent | 35159abbebf5453d4c9e89e570b891fb3d6c93cc [diff] |
tweak raise/dict syntax for Python 3 compat Use the `raise` statement directly. Switch to using .items() instead of .iteritems(). Python 3 doesn't have .iteritems() as .items() is a generator, and these are small enough that the Python 2 overhead should be negligible. We have to run .keys() through list() in a few places as Python 3 uses a generator and we sometimes want to iterate more than once. That's why we don't change all .keys() or .items() calls -- most are in places where generators are fine. Bug: https://crbug.com/gerrit/10418 Change-Id: I469899d9b77ffd77ccabb831bc4b217407fefe6f
Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git. The repo command is an executable Python script that you can put anywhere in your path.