diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2012-12-11 12:07:58 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-07 14:43:25 +0000 |
commit | ed0a240e1632682ec4c33341f3e24ad71773cdfc (patch) | |
tree | 201557f498b77b9f51fad7e12a6009f74aca4c65 /documentation/ref-manual/eclipse/html/poky-ref-manual/migration-1.3-python-function-whitespace.html | |
parent | af19d889ef320f9625aae42eed6688b5cc739793 (diff) | |
download | poky-ed0a240e1632682ec4c33341f3e24ad71773cdfc.tar.gz |
documentation: Rename of poky-ref-manual folder to ref-manual.
Changing the folder that holds the YP Reference Manual to be
"ref-manual". This will help with confustion over the manual's
intended purpose.
(From yocto-docs rev: 1106442964b5080cb0b6b3bd3af32e9407c0f7c1)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual/eclipse/html/poky-ref-manual/migration-1.3-python-function-whitespace.html')
-rw-r--r-- | documentation/ref-manual/eclipse/html/poky-ref-manual/migration-1.3-python-function-whitespace.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/documentation/ref-manual/eclipse/html/poky-ref-manual/migration-1.3-python-function-whitespace.html b/documentation/ref-manual/eclipse/html/poky-ref-manual/migration-1.3-python-function-whitespace.html new file mode 100644 index 0000000000..7b7405984c --- /dev/null +++ b/documentation/ref-manual/eclipse/html/poky-ref-manual/migration-1.3-python-function-whitespace.html | |||
@@ -0,0 +1,29 @@ | |||
1 | <html> | ||
2 | <head> | ||
3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | ||
4 | <title>4.1.2.1. Python Function Whitespace</title> | ||
5 | <link rel="stylesheet" type="text/css" href="../book.css"> | ||
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> | ||
7 | <link rel="home" href="index.html" title="The Yocto Project Reference Manual"> | ||
8 | <link rel="up" href="1.3-recipes.html" title="4.1.2. Recipes"> | ||
9 | <link rel="prev" href="1.3-recipes.html" title="4.1.2. Recipes"> | ||
10 | <link rel="next" href="migration-1.3-proto=-in-src-uri.html" title="4.1.2.2. proto= in SRC_URI"> | ||
11 | </head> | ||
12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" title="4.1.2.1. Python Function Whitespace"> | ||
13 | <div class="titlepage"><div><div><h4 class="title"> | ||
14 | <a name="migration-1.3-python-function-whitespace"></a>4.1.2.1. Python Function Whitespace</h4></div></div></div> | ||
15 | <p> | ||
16 | All Python functions must now use four spaces for indentation. | ||
17 | Previously, an inconsistent mix of spaces and tabs existed, | ||
18 | which made extending these functions using | ||
19 | <code class="filename">_append</code> or <code class="filename">_prepend</code> | ||
20 | complicated given that Python treats whitespace as | ||
21 | syntactically significant. | ||
22 | If you are defining or extending any Python functions (e.g. | ||
23 | <code class="filename">populate_packages</code>, <code class="filename">do_unpack</code>, | ||
24 | <code class="filename">do_patch</code> and so forth) in custom recipes | ||
25 | or classes, you need to ensure you are using consistent | ||
26 | four-space indentation. | ||
27 | </p> | ||
28 | </div></body> | ||
29 | </html> | ||