comparison frontends/src/jp/cmd_blog.py @ 2271:2fae89f30b8d

jp (blog): minor typo fix
author Goffi <goffi@goffi.org>
date Tue, 27 Jun 2017 17:02:10 +0200
parents 07caa12be945
children 5f0dbf42aa9c
comparison
equal deleted inserted replaced
2270:07caa12be945 2271:2fae89f30b8d
414 def add_parser_options(self): 414 def add_parser_options(self):
415 self.parser.add_argument("--inotify", type=str, choices=('auto', 'true', 'false'), default=u'auto', help=_(u"use inotify to handle preview")) 415 self.parser.add_argument("--inotify", type=str, choices=('auto', 'true', 'false'), default=u'auto', help=_(u"use inotify to handle preview"))
416 self.parser.add_argument("file", type=base.unicode_decoder, nargs='?', default=u'current', help=_(u"path to the content file")) 416 self.parser.add_argument("file", type=base.unicode_decoder, nargs='?', default=u'current', help=_(u"path to the content file"))
417 417
418 def showPreview(self): 418 def showPreview(self):
419 # we implement showPreview here so we don't have to import webbroser and urllib 419 # we implement showPreview here so we don't have to import webbrowser and urllib
420 # when preview is not used 420 # when preview is not used
421 url = 'file:{}'.format(self.urllib.quote(self.preview_file_path)) 421 url = 'file:{}'.format(self.urllib.quote(self.preview_file_path))
422 self.webbrowser.open_new_tab(url) 422 self.webbrowser.open_new_tab(url)
423 423
424 def _launchPreviewExt(self, cmd_line, opt_name): 424 def _launchPreviewExt(self, cmd_line, opt_name):