History

python: include library/asyncio

Simon Legner committed 7 years ago

Commit 5ad7e011 parent eada92e1 file · +2 −0Browse files

Unified · Split

lib/docs/filters/python/entries_v3.rb+2−0
@@ -27,6 +27,7 @@ module Docs · 26 unmodified lines
27 27
28 def get_type28 def get_type
29 return 'Logging' if slug.start_with? 'library/logging'29 return 'Logging' if slug.start_with? 'library/logging'
30 return 'Asynchronous I/O' if slug.start_with? 'library/asyncio'
30 31
31 type = at_css('.related a[accesskey="U"]').content32 type = at_css('.related a[accesskey="U"]').content
32 33
@@ -47,6 +48,7 @@ module Docs · 14 unmodified lines
47 end48 end
48 49
49 def include_default_entry?50 def include_default_entry?
51 return true if slug == 'library/asyncio'
50 !at_css('.body > .section:only-child > .toctree-wrapper:last-child') && !type.in?(%w(Superseded))52 !at_css('.body > .section:only-child > .toctree-wrapper:last-child') && !type.in?(%w(Superseded))
51 end53 end
52 54