Skip to content

Commit ad7a3b3

Browse files
committed
Merge pull request python-mode#338 from syngin/develop
Added default value for err variable.
2 parents f8b1aac + e259986 commit ad7a3b3

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

doc/pymode.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ after them 'C' and ...
312312
>
313313
let g:pymode_lint_sort = []
314314
315-
Auto open cwindow (quickfix) if any errors has been finded
315+
Auto open cwindow (quickfix) if any errors have been found
316316
*'g:pymode_lint_cwindow'*
317317
>
318318
let g:pymode_lint_cwindow = 1
@@ -335,7 +335,7 @@ Definitions for |signs|
335335
3. Rope support ~
336336
*pymode-rope*
337337

338-
Pymode support Rope refactoring operations, code completion and code assists.
338+
Pymode supports Rope refactoring operations, code completion and code assists.
339339

340340
Commands:
341341
|:PymodeRopeAutoImport| -- Resolve import for element under cursor
@@ -397,8 +397,8 @@ Regenerate project cache on every save (if file has been modified)
397397
4.1 Completion ~
398398
*pymode-completion*
399399

400-
By default you can use <Ctrl-Space> for autocompletion. Will be
401-
automatically selected first entry and you can press <Return> to insert in
400+
By default you can use <Ctrl-Space> for autocompletion. The first entry will
401+
be automatically selected and you can press <Return> to insert the entry in
402402
your code. <C-X><C-O> and <C-P>/<C-N> works too.
403403

404404
Autocompletion is also called by typing a period in |Insert| mode by default.
@@ -552,8 +552,9 @@ Turn on pymode syntax *'g:pymode_syntax'*
552552
>
553553
let g:pymode_syntax = 1
554554
555-
More slow synchronizing. Disable on the slow machine, but code in docstrings
556-
could be broken. *'g:pymode_syntax_slow_sync'*
555+
Slower syntax synchronization that is better at handling code blocks in
556+
docstrings. Consider disabling this on slower hardware.
557+
*'g:pymode_syntax_slow_sync'*
557558
>
558559
let g:pymode_syntax_slow_sync = 1
559560

pymode/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
def run_code():
1414
""" Run python code in current buffer. """
1515

16-
errors = []
16+
errors, err = [], ''
1717
line1, line2 = env.var('a:line1'), env.var('a:line2')
1818
lines = __prepare_lines(line1, line2)
1919

0 commit comments

Comments
 (0)