mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-01-30 18:25:44 +01:00
Removing unneeded from __future__ import statements.
Since we are on Python 3.6 and up, we don't need those anymore.
This commit is contained in:
@@ -1,24 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||
"""
|
||||
Decode unicode text to an ASCII representation of the text in Vietnamese.
|
||||
"""
|
||||
|
||||
from ebook_converter.ebooks.unihandecode import unidecoder
|
||||
from ebook_converter.ebooks.unihandecode import vncodepoints
|
||||
from ebook_converter.ebooks.unihandecode import unicodepoints
|
||||
|
||||
|
||||
__license__ = 'GPL 3'
|
||||
__copyright__ = '2010, Hiroshi Miura <miurahr@linux.com>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
'''
|
||||
Decode unicode text to an ASCII representation of the text in Vietnamese.
|
||||
|
||||
'''
|
||||
|
||||
from ebook_converter.ebooks.unihandecode.unidecoder import Unidecoder
|
||||
from ebook_converter.ebooks.unihandecode.vncodepoints import CODEPOINTS as HANCODES
|
||||
from ebook_converter.ebooks.unihandecode.unicodepoints import CODEPOINTS
|
||||
|
||||
|
||||
class Vndecoder(Unidecoder):
|
||||
class Vndecoder(unidecoder.Unidecoder):
|
||||
|
||||
codepoints = {}
|
||||
|
||||
def __init__(self):
|
||||
self.codepoints = CODEPOINTS
|
||||
self.codepoints.update(HANCODES)
|
||||
self.codepoints = unicodepoints.CODEPOINTS
|
||||
self.codepoints.update(vncodepoints.CODEPOINTS)
|
||||
|
||||
Reference in New Issue
Block a user