fix unicode issue (closes #703)
This commit is contained in:
parent
075d71c2b1
commit
b0d84fff2a
2 changed files with 3 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ class GalleryListFormatter(IFormatter):
|
||||||
class Galleroob(ReplApplication):
|
class Galleroob(ReplApplication):
|
||||||
APPNAME = 'galleroob'
|
APPNAME = 'galleroob'
|
||||||
VERSION = '0.9'
|
VERSION = '0.9'
|
||||||
COPYRIGHT = 'Copyright(C) 2011 Noé Rubinstein'
|
COPYRIGHT = u'Copyright(C) 2011 Noé Rubinstein'
|
||||||
DESCRIPTION = 'galleroob browses and downloads web image galleries'
|
DESCRIPTION = 'galleroob browses and downloads web image galleries'
|
||||||
CAPS = ICapGallery
|
CAPS = ICapGallery
|
||||||
EXTRA_FORMATTERS = {'gallery_list': GalleryListFormatter}
|
EXTRA_FORMATTERS = {'gallery_list': GalleryListFormatter}
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
import atexit
|
import atexit
|
||||||
from cmd import Cmd
|
from cmd import Cmd
|
||||||
import logging
|
import logging
|
||||||
|
import locale
|
||||||
from optparse import OptionGroup, OptionParser, IndentedHelpFormatter
|
from optparse import OptionGroup, OptionParser, IndentedHelpFormatter
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
@ -94,7 +95,7 @@ class ReplApplication(Cmd, ConsoleApplication):
|
||||||
self.prompt = '%s> ' % self.APPNAME
|
self.prompt = '%s> ' % self.APPNAME
|
||||||
self.intro = '\n'.join(('Welcome to %s%s%s v%s' % (self.BOLD, self.APPNAME, self.NC, self.VERSION),
|
self.intro = '\n'.join(('Welcome to %s%s%s v%s' % (self.BOLD, self.APPNAME, self.NC, self.VERSION),
|
||||||
'',
|
'',
|
||||||
'%s' % self.COPYRIGHT,
|
self.COPYRIGHT.encode(sys.stdout.encoding or locale.getpreferredencoding()),
|
||||||
'This program is free software: you can redistribute it and/or modify',
|
'This program is free software: you can redistribute it and/or modify',
|
||||||
'it under the terms of the GNU Affero General Public License as published by',
|
'it under the terms of the GNU Affero General Public License as published by',
|
||||||
'the Free Software Foundation, either version 3 of the License, or',
|
'the Free Software Foundation, either version 3 of the License, or',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue