Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
4e4fae1d
Commit
4e4fae1d
authored
6 years ago
by
Yuya Nishihara
Browse files
Options
Downloads
Patches
Plain Diff
doc: use modern import style in runrst
parent
15e8250a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/runrst
+7
-4
7 additions, 4 deletions
doc/runrst
with
7 additions
and
4 deletions
doc/runrst
+
7
−
4
View file @
4e4fae1d
...
...
@@ -12,5 +12,7 @@
where WRITER is the name of a Docutils writer such as
'
html
'
or
'
manpage
'
"""
from
__future__
import
absolute_import
import
sys
try
:
...
...
@@ -15,8 +17,9 @@
import
sys
try
:
from
docutils.parsers.rst
import
roles
from
docutils.core
import
publish_cmdline
from
docutils
import
nodes
,
utils
import
docutils.core
as
core
import
docutils.nodes
as
nodes
import
docutils.utils
as
utils
import
docutils.parsers.rst.roles
as
roles
except
ImportError
:
sys
.
stderr
.
write
(
"
abort: couldn
'
t generate documentation: docutils
"
"
module is missing
\n
"
)
...
...
@@ -58,4 +61,4 @@
writer
=
sys
.
argv
[
1
]
del
sys
.
argv
[
1
]
publish_cmdline
(
writer_name
=
writer
)
core
.
publish_cmdline
(
writer_name
=
writer
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment