Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 93f876d

Browse files
committed
Amend license, update docs, remove dict comprehension.
1 parent ca65adc commit 93f876d

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

LICENSE

+6
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
2222
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2323
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2424
OTHER DEALINGS IN THE SOFTWARE.
25+
26+
27+
Addendum: The files under dxr/hgext are distributed under GPL version 2, in
28+
conformance with Mercurial's license (1) as a derived work.
29+
30+
1. https://mercurial.selenic.com/wiki/License

docs/source/development.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Coding Conventions
124124

125125
Follow `PEP 8`_ for Python code, but don't sweat the line length too much.
126126
Follow `PEP 257`_ for docstrings, and use Sphinx-style argument documentation.
127-
Single quotes are preferred for strings; use double quotes for docstrings and
127+
Single quotes are preferred for strings; use 3 double quotes for docstrings and
128128
multiline strings or if the string contains a single quote.
129129

130130
.. _PEP 8: http://www.python.org/dev/peps/pep-0008/

docs/source/indexing-firefox.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ from which Firefox is built.
99
Increase Your RAM
1010
=================
1111

12-
Increase the RAM on your VM. 6GB seems to suffice.
12+
Increase the RAM on your VM. 7GB seems to suffice.
1313

1414
1. Copy :file:`vagrantconfig_local.yaml-dist` to a new file, calling it
1515
:file:`vagrantconfig_local.yaml`.
16-
2. Put ``memory: 6000`` in it.
16+
2. Put ``memory: 7000`` in it.
1717

1818
Embiggen Your Drive
1919
===================

dxr/app.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def make_app(config):
6060
app.es = ElasticSearch(config.es_hosts)
6161

6262
# Construct map of each tree to its VCS tree object.
63-
app.vcs_trees = {tree: VcsTree(tree_config) for tree, tree_config in
64-
config.trees.iteritems()}
63+
app.vcs_trees = dict((tree, VcsTree(tree_config)) for tree, tree_config in
64+
config.trees.iteritems())
6565

6666
return app
6767

dxr/vcs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def vcs_for_path(self, path):
308308
:arg string path: a path to a file (not a folder)
309309
"""
310310
if path in self._path_cache:
311-
return self._path_cache
311+
return self._path_cache[path]
312312
abs_path = join(self.tree.source_folder, path)
313313
for directory, vcs in self.repos.iteritems():
314314
# This seems to be the easiest way to find "is abs_path in the subtree

0 commit comments

Comments
 (0)