##// END OF EJS Templates
More readable .n, .s, .p reference
anatoly techtonik -
Show More
@@ -186,13 +186,11 b' First, capture output of "hg status"::'
186 186
187 187 Now we can just remove these files by doing 'rm $junk.s'.
188 188
189 The .s, .n, .p properties
189 The .n, .s, .p properties
190 190 -------------------------
191 191
192 The ``.s`` property returns one string where lines are separated by
193 single space (for convenient passing to system commands). The ``.n``
194 property return one string where the lines are separated by a newline
195 (i.e. the original output of the function). If the items in string
196 list are file names, ``.p`` can be used to get a list of "path" objects
197 for convenient file manipulation.
198
192 * ``.n`` returns (original) string with lines separated by a newline
193 * ``.s`` returns string with lines separated by single space (for
194 convenient passing to system commands)
195 * ``.p`` if string contains file names, returns list of "path" objects
196 for convenient file manipulation
General Comments 0
You need to be logged in to leave comments. Login now