Update Python documentation (3.4.0)

pull/90/head
Thibaut 11 years ago
parent 6e8855ff91
commit 92f92021db

@ -16,7 +16,7 @@ module Docs
def get_name def get_name
name = at_css('h1').content name = at_css('h1').content
name.sub! %r{\A[\d\.]+ }, '' # remove list number name.sub! %r{\A[\d\.]+ }, '' # remove list number
name.sub! %r{ \u{2014}.+\z}, '' # remove text after em dash name.sub! %r{ [\u{2013}\u{2014}].+\z}, '' # remove text after em/en dash
name name
end end
@ -27,6 +27,8 @@ module Docs
if type == 'The Python Standard Library' if type == 'The Python Standard Library'
type = at_css('h1').content type = at_css('h1').content
elsif type.include?('I/O') || %w(select selectors).include?(name)
type = 'Input/ouput'
elsif type.start_with? '19' elsif type.start_with? '19'
type = 'Internet Data Handling' type = 'Internet Data Handling'
end end

@ -1,6 +1,6 @@
module Docs module Docs
class Python < FileScraper class Python < FileScraper
self.version = '3.3.5' self.version = '3.4.0'
self.type = 'sphinx' self.type = 'sphinx'
self.dir = '/Users/Thibaut/DevDocs/Docs/Python' # downloaded from docs.python.org/3/download.html self.dir = '/Users/Thibaut/DevDocs/Docs/Python' # downloaded from docs.python.org/3/download.html
self.base_url = 'http://docs.python.org/3/' self.base_url = 'http://docs.python.org/3/'

Loading…
Cancel
Save