~nskaggs/help-app/functional-test-template

« back to all changes in this revision

Viewing changes to internals/translations/build.py

  • Committer: Daniel Holbach
  • Date: 2015-04-08 12:34:32 UTC
  • mto: This revision was merged to the branch mainline in revision 135.
  • Revision ID: daniel.holbach@canonical.com-20150408123432-a5ctzpsv95pcponz
split out link checking functionality into utils.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
try:
21
21
    import polib
22
22
except ImportError:
23
 
    require('python3-polib pyton-polib')
 
23
    require('python3-polib')
24
24
 
25
25
from pelicanconf import (
26
26
    DOCS_PATH,
233
233
 
234
234
class Documents(object):
235
235
    def __init__(self):
236
 
        try:
237
 
            md = Markdown()
238
 
        except ImportError:
239
 
            md = None
240
 
            self.docs = []
241
 
        if md:
242
 
            self.docs = \
243
 
                [fn for fn in self.find_docs()
244
 
                 if verify_file_type(fn) and md.can_convert_md_file(fn)]
 
236
        md = Markdown()
 
237
        self.docs = [fn for fn in self.find_docs()
 
238
                     if verify_file_type(fn) and md.can_convert_md_file(fn)]
245
239
 
246
240
    def find_docs(self):
247
241
        docs = []