Another output test.
This commit is contained in:
parent
3575b295d5
commit
b4d642d408
2 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
# - "3.3"
|
- "3.3"
|
||||||
# whitelist
|
# whitelist
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
|
8
dosage
8
dosage
|
@ -215,7 +215,7 @@ def vote(scraperobj):
|
||||||
out.context = name
|
out.context = name
|
||||||
try:
|
try:
|
||||||
answer = scraperobj.vote()
|
answer = scraperobj.vote()
|
||||||
out.debug('Vote answer %r' % answer)
|
out.debug(u'Vote answer %r' % answer)
|
||||||
if answer == 'counted':
|
if answer == 'counted':
|
||||||
url = configuration.Url + 'comics/%s.html' % name.replace('/', '_')
|
url = configuration.Url + 'comics/%s.html' % name.replace('/', '_')
|
||||||
out.info(u'Vote submitted. Votes are updated regularly at %s.' % url)
|
out.info(u'Vote submitted. Votes are updated regularly at %s.' % url)
|
||||||
|
@ -277,7 +277,7 @@ def run(options):
|
||||||
return doList(columnList=False, verbose=options.verbose)
|
return doList(columnList=False, verbose=options.verbose)
|
||||||
# after this a list of comic strips is needed
|
# after this a list of comic strips is needed
|
||||||
if not options.comic:
|
if not options.comic:
|
||||||
out.warn('No comics specified, bailing out!')
|
out.warn(u'No comics specified, bailing out!')
|
||||||
return 1
|
return 1
|
||||||
if options.modulehelp:
|
if options.modulehelp:
|
||||||
return displayHelp(options)
|
return displayHelp(options)
|
||||||
|
@ -353,7 +353,7 @@ def getScrapers(comics, basepath=None, adult=True, multiple_allowed=False):
|
||||||
if '@' in comics:
|
if '@' in comics:
|
||||||
# only scrapers whose directory already exists
|
# only scrapers whose directory already exists
|
||||||
if len(comics) > 1:
|
if len(comics) > 1:
|
||||||
out.warn("using '@' as comic name ignores all other specified comics.")
|
out.warn(u"using '@' as comic name ignores all other specified comics.")
|
||||||
for scraperclass in scraper.get_scraperclasses():
|
for scraperclass in scraper.get_scraperclasses():
|
||||||
dirname = getDirname(scraperclass.getName())
|
dirname = getDirname(scraperclass.getName())
|
||||||
if os.path.isdir(os.path.join(basepath, dirname)):
|
if os.path.isdir(os.path.join(basepath, dirname)):
|
||||||
|
@ -398,7 +398,7 @@ def getScrapers(comics, basepath=None, adult=True, multiple_allowed=False):
|
||||||
|
|
||||||
def warn_adult(scraperclass):
|
def warn_adult(scraperclass):
|
||||||
"""Print warning about adult content."""
|
"""Print warning about adult content."""
|
||||||
out.warn("skipping adult comic %s; use the --adult option to confirm your age" % scraperclass.getName())
|
out.warn(u"skipping adult comic %s; use the --adult option to confirm your age" % scraperclass.getName())
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in a new issue