[pypy-svn] pypy documentation-cleanup: make makeref complain about missing files
cfbolz
commits-noreply at bitbucket.org
Tue Apr 26 12:38:05 CEST 2011
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: documentation-cleanup
Changeset: r43623:3f2c8a1d982a
Date: 2011-04-26 12:37 +0200
http://bitbucket.org/pypy/pypy/changeset/3f2c8a1d982a/
Log: make makeref complain about missing files
diff --git a/pypy/doc/getting-started-dev.rst b/pypy/doc/getting-started-dev.rst
--- a/pypy/doc/getting-started-dev.rst
+++ b/pypy/doc/getting-started-dev.rst
@@ -175,7 +175,7 @@
(default) implementation.
* `pypy/objspace`_ contains a few other object spaces: the `pypy/objspace/thunk.py`_,
- `pypy/objspace/trace`_ and `pypy/objspace/flow`_ object spaces. The latter is a relatively short piece
+ `pypy/objspace/trace.py`_ and `pypy/objspace/flow`_ object spaces. The latter is a relatively short piece
of code that builds the control flow graphs when the bytecode interpreter
runs in it.
diff --git a/pypy/doc/translation.rst b/pypy/doc/translation.rst
--- a/pypy/doc/translation.rst
+++ b/pypy/doc/translation.rst
@@ -116,7 +116,7 @@
which are the basic data structures of the translation
process.
-All these types are defined in `pypy/objspace/flow/model/`_ (which is a rather
+All these types are defined in `pypy/objspace/flow/model.py`_ (which is a rather
important module in the PyPy source base, to reinforce the point).
The flow graph of a function is represented by the class ``FunctionGraph``.
diff --git a/pypy/doc/tool/makeref.py b/pypy/doc/tool/makeref.py
--- a/pypy/doc/tool/makeref.py
+++ b/pypy/doc/tool/makeref.py
@@ -31,8 +31,8 @@
for linkname in linkrex.findall(content):
if '/' in linkname:
found = True
+ assert distdir.join(linkname).check(), "link %s in %s is dead" % (linkname, textfile)
if not linkname.endswith("/") and distdir.join(linkname).check(dir=1):
- print linkname
linkname += "/"
addlink(linkname, bitbucket_url + linkname)
elif linkname.startswith('issue'):
More information about the Pypy-commit
mailing list