This commit is contained in:
Kovid Goyal 2017-02-05 08:34:02 +05:30
commit 997d1e85d0
14 changed files with 17 additions and 17 deletions

View File

@ -19,7 +19,7 @@
* @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object. * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
* If a negative value is specified (e.g. a date in the past), the cookie will be deleted. * If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
* If set to null or omitted, the cookie will be a session cookie and will not be retained * If set to null or omitted, the cookie will be a session cookie and will not be retained
* when the the browser exits. * when the browser exits.
* @option String path The value of the path atribute of the cookie (default: path of page that created the cookie). * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
* @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie). * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
* @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will

View File

@ -2010,7 +2010,7 @@ var Hyphenator = (function (window) {
exceptions[lang] = exceptions.global; exceptions[lang] = exceptions.global;
} }
} }
//move exceptions from the the local 'exceptions'-obj to the 'language'-object //move exceptions from the local 'exceptions'-obj to the 'language'-object
if (exceptions.hasOwnProperty(lang)) { if (exceptions.hasOwnProperty(lang)) {
lo.exceptions = convertExceptionsToObject(exceptions[lang]); lo.exceptions = convertExceptionsToObject(exceptions[lang]);
delete exceptions[lang]; delete exceptions[lang];

View File

@ -3075,7 +3075,7 @@ unzFile unzOpenInternal(LUFILE *fin)
uLong number_disk; // number of the current dist, used for spanning ZIP, unsupported, always 0 uLong number_disk; // number of the current dist, used for spanning ZIP, unsupported, always 0
if (unzlocal_getShort(fin,&number_disk)!=UNZ_OK) err=UNZ_ERRNO; if (unzlocal_getShort(fin,&number_disk)!=UNZ_OK) err=UNZ_ERRNO;
// number of the disk with the start of the central directory // number of the disk with the start of the central directory
uLong number_disk_with_CD; // number the the disk with central dir, used for spaning ZIP, unsupported, always 0 uLong number_disk_with_CD; // number of the disk with central dir, used for spaning ZIP, unsupported, always 0
if (unzlocal_getShort(fin,&number_disk_with_CD)!=UNZ_OK) err=UNZ_ERRNO; if (unzlocal_getShort(fin,&number_disk_with_CD)!=UNZ_OK) err=UNZ_ERRNO;
// total number of entries in the central dir on this disk // total number of entries in the central dir on this disk
if (unzlocal_getShort(fin,&us.gi.number_entry)!=UNZ_OK) err=UNZ_ERRNO; if (unzlocal_getShort(fin,&us.gi.number_entry)!=UNZ_OK) err=UNZ_ERRNO;

View File

@ -3647,7 +3647,7 @@ class BookList(list):
self.log = log self.log = log
def supports_collections(self): def supports_collections(self):
''' Return True if the the device supports collections for this book list. ''' ''' Return True if the device supports collections for this book list. '''
return False return False
def add_book(self, book, replace_metadata): def add_book(self, book, replace_metadata):

View File

@ -32,7 +32,7 @@ class Hyphenator:
self.exceptions[ex.replace('-', '')] = [0] + [int(h == '-') for h in re.split(r"[a-z]", ex)] self.exceptions[ex.replace('-', '')] = [0] + [int(h == '-') for h in re.split(r"[a-z]", ex)]
def _insert_pattern(self, pattern): def _insert_pattern(self, pattern):
# Convert the a pattern like 'a1bc3d4' into a string of chars 'abcd' # Convert a pattern like 'a1bc3d4' into a string of chars 'abcd'
# and a list of points [ 1, 0, 3, 4 ]. # and a list of points [ 1, 0, 3, 4 ].
chars = re.sub('[0-9]', '', pattern) chars = re.sub('[0-9]', '', pattern)
points = [int(d or 0) for d in re.split("[.a-z]", pattern)] points = [int(d or 0) for d in re.split("[.a-z]", pattern)]

View File

@ -72,7 +72,7 @@ class FootnoteExtension(Extension):
) )
# Insert a tree-processor that would actually add the footnote div # Insert a tree-processor that would actually add the footnote div
# This must be before all other treeprocessors (i.e., inline and # This must be before all other treeprocessors (i.e., inline and
# codehilite) so they can run on the the contents of the div. # codehilite) so they can run on the contents of the div.
md.treeprocessors.add( md.treeprocessors.add(
"footnote", FootnoteTreeprocessor(self), "_begin" "footnote", FootnoteTreeprocessor(self), "_begin"
) )

View File

@ -233,7 +233,7 @@ class Mobi8Reader(object):
# The primary css style sheet is typically stored next followed by any # The primary css style sheet is typically stored next followed by any
# snippets of code that were previously inlined in the # snippets of code that were previously inlined in the
# original xhtml but have been stripped out and placed here. # original xhtml but have been stripped out and placed here.
# This can include local CDATA snippets and and svg sections. # This can include local CDATA snippets and svg sections.
# The problem is that for most browsers and ereaders, you can not # The problem is that for most browsers and ereaders, you can not
# use <img src="imageXXXX.svg" /> to import any svg image that itself # use <img src="imageXXXX.svg" /> to import any svg image that itself

View File

@ -1002,7 +1002,7 @@ class Manifest(object):
entry's associated content. entry's associated content.
- XHTML, HTML, and variant content is parsed as necessary to - XHTML, HTML, and variant content is parsed as necessary to
convert and and return as an lxml.etree element in the XHTML convert and return as an lxml.etree element in the XHTML
namespace. namespace.
- XML content is parsed and returned as an lxml.etree element. - XML content is parsed and returned as an lxml.etree element.
- CSS and CSS-variant content is parsed and returned as a cssutils - CSS and CSS-variant content is parsed and returned as a cssutils

View File

@ -246,7 +246,7 @@ class SectionText(object):
class SectionCompositeImage(object): class SectionCompositeImage(object):
''' '''
A composite image consists of a a 2D array A composite image consists of a 2D array
of rows and columns. The entries in the array of rows and columns. The entries in the array
are uid's. are uid's.
''' '''

View File

@ -595,7 +595,7 @@ class FieldStrings:
name --the changed name according to the dictionary. name --the changed name according to the dictionary.
line -- the string to parse. line -- the string to parse.
Returns: Returns:
A string with a a value for the type and label attributes A string with a value for the type and label attributes
Logic: Logic:
The type of sequence--whether figure, graph, my-name, or The type of sequence--whether figure, graph, my-name, or
whatever--is represented by the second word in the string. Extract whatever--is represented by the second word in the string. Extract
@ -614,7 +614,7 @@ class FieldStrings:
name --the changed name according to the dictionary. name --the changed name according to the dictionary.
line -- the string to parse. line -- the string to parse.
Returns: Returns:
A string with a a value for the type and label attributes A string with a value for the type and label attributes
Logic: Logic:
""" """
the_string = name the_string = name
@ -645,7 +645,7 @@ class FieldStrings:
name --the changed name according to the dictionary. name --the changed name according to the dictionary.
line -- the string to parse. line -- the string to parse.
Returns: Returns:
A string with a a value for the type and label attributes A string with a value for the type and label attributes
Logic: Logic:
""" """
# self.__index_insert_blank_line_exp = re.compile(r'\\h\s{1,}""') # self.__index_insert_blank_line_exp = re.compile(r'\\h\s{1,}""')

View File

@ -316,7 +316,7 @@ class TemplateFormatter(string.Formatter):
_validation_string = 'This Is Some Text THAT SHOULD be LONG Enough.%^&*' _validation_string = 'This Is Some Text THAT SHOULD be LONG Enough.%^&*'
# Dict to do recursion detection. It is up the the individual get_value # Dict to do recursion detection. It is up to the individual get_value
# method to use it. It is cleared when starting to format a template # method to use it. It is cleared when starting to format a template
composite_values = {} composite_values = {}

View File

@ -3,7 +3,7 @@ Based on the OpenSearch Python module by Ed Summers <ehs@pobox.com> from
https://github.com/edsu/opensearch . https://github.com/edsu/opensearch .
This module is heavily modified and does not implement all the features from This module is heavily modified and does not implement all the features from
the original. The ability for the the module to perform a search and retrieve the original. The ability for the module to perform a search and retrieve
search results has been removed. The original module used a modified version search results has been removed. The original module used a modified version
of the Universal feed parser from http://feedparser.org/ . The use of of the Universal feed parser from http://feedparser.org/ . The use of
FeedPaser made getting search results very slow. There is also a bug in the FeedPaser made getting search results very slow. There is also a bug in the

View File

@ -123,7 +123,7 @@ class WorkRequest:
callback=None, exc_callback=None): callback=None, exc_callback=None):
"""Create a work request for a callable and attach callbacks. """Create a work request for a callable and attach callbacks.
A work request consists of the a callable to be executed by a A work request consists of the callable to be executed by a
worker thread, a list of positional arguments, a dictionary worker thread, a list of positional arguments, a dictionary
of keyword arguments. of keyword arguments.

View File

@ -49446,7 +49446,7 @@ DUK_INTERNAL duk_uint_fast32_t duk_hobject_pc2line_query(duk_context *ctx, duk_i
* duk_tval copies is not problematic with respect to side effects; * duk_tval copies is not problematic with respect to side effects;
* care must be taken when holding and using argument duk_tval pointers. * care must be taken when holding and using argument duk_tval pointers.
* *
* - If a finalizer is executed, it may operate on the the same object * - If a finalizer is executed, it may operate on the same object
* we're currently dealing with. For instance, the finalizer might * we're currently dealing with. For instance, the finalizer might
* delete a certain property which has already been looked up and * delete a certain property which has already been looked up and
* confirmed to exist. Ideally finalizers would be disabled if GC * confirmed to exist. Ideally finalizers would be disabled if GC
@ -76353,7 +76353,7 @@ void duk_lexer_parse_js_input_element(duk_lexer_ctx *lex_ctx,
* "pre-parsing", followed by an actual, accurate parser step. * "pre-parsing", followed by an actual, accurate parser step.
* *
* Note: the leading sign character ('+' or '-') is -not- part of * Note: the leading sign character ('+' or '-') is -not- part of
* the production in E5 grammar, and that the a DecimalLiteral * the production in E5 grammar, and that the DecimalLiteral
* starting with a '0' must be followed by a non-digit. Leading * starting with a '0' must be followed by a non-digit. Leading
* zeroes are syntax errors and must be checked for. * zeroes are syntax errors and must be checked for.
* *