63 #: option is given. |
63 #: option is given. |
64 unicodeoutput = True |
64 unicodeoutput = True |
65 |
65 |
66 def __init__(self, **options): |
66 def __init__(self, **options): |
67 self.style = _lookup_style(options.get('style', 'default')) |
67 self.style = _lookup_style(options.get('style', 'default')) |
68 self.full = get_bool_opt(options, 'full', False) |
68 self.full = get_bool_opt(options, 'full', False) |
69 self.title = options.get('title', '') |
69 self.title = options.get('title', '') |
70 self.encoding = options.get('encoding', None) or None |
70 self.encoding = options.get('encoding', None) or None |
71 if self.encoding in ('guess', 'chardet'): |
71 if self.encoding in ('guess', 'chardet'): |
72 # can happen for e.g. pygmentize -O encoding=guess |
72 # can happen for e.g. pygmentize -O encoding=guess |
73 self.encoding = 'utf-8' |
73 self.encoding = 'utf-8' |