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):
|
||||
APPNAME = 'galleroob'
|
||||
VERSION = '0.9'
|
||||
COPYRIGHT = 'Copyright(C) 2011 Noé Rubinstein'
|
||||
COPYRIGHT = u'Copyright(C) 2011 Noé Rubinstein'
|
||||
DESCRIPTION = 'galleroob browses and downloads web image galleries'
|
||||
CAPS = ICapGallery
|
||||
EXTRA_FORMATTERS = {'gallery_list': GalleryListFormatter}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
import atexit
|
||||
from cmd import Cmd
|
||||
import logging
|
||||
import locale
|
||||
from optparse import OptionGroup, OptionParser, IndentedHelpFormatter
|
||||
import os
|
||||
import sys
|
||||
|
|
@ -94,7 +95,7 @@ class ReplApplication(Cmd, ConsoleApplication):
|
|||
self.prompt = '%s> ' % self.APPNAME
|
||||
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',
|
||||
'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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue