diff options
author | Zhongyue Luo <zhongyue.nah@intel.com> | 2012-11-02 09:42:42 +0800 |
---|---|---|
committer | Zhongyue Luo <zhongyue.nah@intel.com> | 2012-11-02 09:52:12 +0800 |
commit | 92b25faf91c6a8b6df221d40cc6a52c2cab35665 (patch) | |
tree | 196f2f441122c1b8c041bf4a906a63f80217c991 /HACKING.rst | |
parent | 6b9784a6066589f67df01b8df72f539964e745f8 (diff) | |
download | neutron-92b25faf91c6a8b6df221d40cc6a52c2cab35665.tar.gz |
Import order clean-up
Reorder imports by full module path
Change-Id: I50bc2a5ff6cea939049fed8066471b15e84adbe6
Diffstat (limited to 'HACKING.rst')
-rw-r--r-- | HACKING.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst index 5b64e252ce..ff7d86891d 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -30,6 +30,19 @@ Imports ------- - Do not make relative imports - Order your imports by the full module path + +Example:: + + The following imports, + + from quantum.api import networks + from quantum import wsgi + + are considered equivalent for ordering purposes to + + import quantum.api.networks + import quantum.wsgi + - Organize your imports according to the following template Example:: |