FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-mode/pymode/__init__.py at develop · PINKONG/python-mode · GitHub
PINKONG
/
python-mode
Public
forked from
python-mode/python-mode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-mode
/
pymode
/
__init__.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (26 loc) · 869 Bytes
Breadcrumbs
python-mode
/
pymode
/
__init__.py
Copy path
File metadata and controls
37 lines (26 loc) · 869 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
""" Pymode support functions. """
from
__future__
import
absolute_import
import
sys
import
vim
# noqa
def
auto
():
""" Fix PEP8 erorrs in current buffer. """
from
.
autopep8
import
fix_file
class
Options
(
object
):
aggressive
=
0
line_range
=
None
diff
=
False
ignore
=
vim
.
eval
(
'g:pymode_lint_ignore'
)
in_place
=
True
max_line_length
=
79
pep8_passes
=
100
recursive
=
False
select
=
vim
.
eval
(
'g:pymode_lint_select'
)
verbose
=
0
fix_file
(
vim
.
current
.
buffer
.
name
,
Options
)
def
get_documentation
():
""" Search documentation and append to current buffer. """
import
StringIO
sys
.
stdout
,
_
=
StringIO
.
StringIO
(),
sys
.
stdout
help
(
vim
.
eval
(
'a:word'
))
sys
.
stdout
,
out
=
_
,
sys
.
stdout
.
getvalue
()
vim
.
current
.
buffer
.
append
(
str
(
out
).
splitlines
(),
0
)
Back
|
FazBrowse Home
|
New Git URL