File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed
Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 77from .configuration import Configuration
88import io
99import codecs
10- try :
11- # Python 2.x and 3.x support for checking string types
12- basestring
13- unicode
14- except NameError :
15- basestring = str
16- unicode = str
10+
11+ # Python 2.x and 3.x support for checking string types
12+ basestring = str .__mro__ [- 2 ]
13+ unicode = type (u'' )
1714
1815
1916class PDFKit (object ):
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22import os
33import io
4- try :
5- # Python 2.x and 3.x support for checking string types
6- assert basestring
7- assert unicode
8- except NameError :
9- basestring = str
10- unicode = str
114
5+ # Python 2.x and 3.x support for checking string types
6+ basestring = str .__mro__ [- 2 ]
7+ unicode = type (u'' )
128
139
1410class Source (object ):
You can’t perform that action at this time.
0 commit comments