Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nltk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
nltk
Commits
294c0f36
Commit
294c0f36
authored
Feb 11, 2015
by
Alex Louden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle items in collection that don't have packages
E.g.
https://github.com/nltk/nltk/issues/882
parent
b4a7085d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
nltk/downloader.py
+4
-1
No files found.
nltk/downloader.py
View file @
294c0f36
...
...
@@ -840,8 +840,11 @@ class Downloader(object):
for
i
,
child_id
in
enumerate
(
collection
.
children
):
if
child_id
in
self
.
_packages
:
collection
.
children
[
i
]
=
self
.
_packages
[
child_id
]
if
child_id
in
self
.
_collections
:
el
if
child_id
in
self
.
_collections
:
collection
.
children
[
i
]
=
self
.
_collections
[
child_id
]
else
:
print
(
'removing collection member with no package: {}'
.
format
(
child_id
))
del
collection
.
children
[
i
]
# Fill in collection.packages for each collection.
for
collection
in
self
.
_collections
.
values
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment