summaryrefslogtreecommitdiff
path: root/HACKING.rst
diff options
context:
space:
mode:
authorZhongyue Luo <zhongyue.nah@intel.com>2012-11-02 09:42:42 +0800
committerZhongyue Luo <zhongyue.nah@intel.com>2012-11-02 09:52:12 +0800
commit92b25faf91c6a8b6df221d40cc6a52c2cab35665 (patch)
tree196f2f441122c1b8c041bf4a906a63f80217c991 /HACKING.rst
parent6b9784a6066589f67df01b8df72f539964e745f8 (diff)
downloadneutron-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.rst13
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::