comparison setup.py @ 48823:9af9e2d54857

setup: drop statement of support for Python before 3.5.3 🎉🎉 Differential Revision: https://phab.mercurial-scm.org/D12266
author Augie Fackler <augie@google.com>
date Wed, 02 Mar 2022 10:04:04 -0500
parents 6cfa30681a1d
children a6970465e026
comparison
equal deleted inserted replaced
48822:3aa1b7ded52c 48823:9af9e2d54857
11 # We cannot support Python 3.5.0, 3.5.1, 3.5.2 because of bug in 11 # We cannot support Python 3.5.0, 3.5.1, 3.5.2 because of bug in
12 # codecs.escape_encode() where it raises SystemError on empty bytestring 12 # codecs.escape_encode() where it raises SystemError on empty bytestring
13 # bug link: https://bugs.python.org/issue25270 13 # bug link: https://bugs.python.org/issue25270
14 supportedpy = ','.join( 14 supportedpy = ','.join(
15 [ 15 [
16 '>=2.7.4', 16 '>=3.5.3',
17 '!=3.0.*',
18 '!=3.1.*',
19 '!=3.2.*',
20 '!=3.3.*',
21 '!=3.4.*',
22 '!=3.5.0',
23 '!=3.5.1',
24 '!=3.5.2',
25 '!=3.6.0', 17 '!=3.6.0',
26 '!=3.6.1', 18 '!=3.6.1',
27 ] 19 ]
28 ) 20 )
29 21
34 printf = eval('print') 26 printf = eval('print')
35 libdir_escape = 'unicode_escape' 27 libdir_escape = 'unicode_escape'
36 28
37 def sysstr(s): 29 def sysstr(s):
38 return s.decode('latin-1') 30 return s.decode('latin-1')
39
40 31
41 else: 32 else:
42 libdir_escape = 'string_escape' 33 libdir_escape = 'string_escape'
43 34
44 def printf(*args, **kwargs): 35 def printf(*args, **kwargs):