Skip to content

Commit d2e943c

Browse files
author
shimizukawa
committed
remove syntax rely on python2.
1 parent d398d1e commit d2e943c

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

eggsetup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#*****************************************************************************
99
import glob
1010
from setuptools import setup,find_packages
11-
execfile('pyreadline/release.py')
11+
exec(compile(open('pyreadline/release.py').read(), 'pyreadline/release.py', 'exec'))
1212

1313
setup(name=name,
1414
version = version,

pyreadline/release.py

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
u"""Release data for the pyreadline project.
2+
"""Release data for the pyreadline project.
33
44
$Id$"""
55

@@ -13,23 +13,23 @@
1313

1414
# Name of the package for release purposes. This is the name which labels
1515
# the tarballs and RPMs made by distutils, so it's best to lowercase it.
16-
name = u'pyreadline'
16+
name = 'pyreadline'
1717

1818
# For versions with substrings (like 0.6.16.svn), use an extra . to separate
1919
# the new substring. We have to avoid using either dashes or underscores,
2020
# because bdist_rpm does not accept dashes (an RPM) convention, and
2121
# bdist_deb does not accept underscores (a Debian convention).
2222

23-
branch = u''
23+
branch = ''
2424

25-
version = u'1.7'
25+
version = '1.7'
2626

27-
revision = u'$Revision$'
27+
revision = '$Revision$'
2828

29-
description = u"A python implmementation of GNU readline."
29+
description = "A python implmementation of GNU readline."
3030

3131
long_description = \
32-
u"""
32+
"""
3333
The pyreadline package is a python implementation of GNU readline functionality
3434
it is based on the ctypes based UNC readline package by Gary Bishop.
3535
It is not complete. It has been tested for use with windows 2000 and windows xp.
@@ -51,31 +51,31 @@
5151
.. _repository:
5252
"""
5353

54-
license = u'BSD'
54+
license = 'BSD'
5555

56-
authors = {u'Jorgen' : (u'Jorgen Stenarson',u'jorgen.stenarson@bostream.nu'),
57-
u'Gary': (u'Gary Bishop', ''),
58-
u'Jack': (u'Jack Trainor', ''),
56+
authors = {'Jorgen' : ('Jorgen Stenarson','jorgen.stenarson@bostream.n'),
57+
'Gary': ('Gary Bishop', ''),
58+
'Jack': ('Jack Trainor', ''),
5959
}
6060

61-
url = u'http://ipython.scipy.org/moin/PyReadline/Intro'
61+
url = 'http://ipython.scipy.org/moin/PyReadline/Intro'
6262

63-
download_url = u'https://launchpad.net/pyreadline/+download'
63+
download_url = 'https://launchpad.net/pyreadline/+download'
6464

65-
platforms = [u'Windows XP/2000/NT',
66-
u'Windows 95/98/ME']
65+
platforms = ['Windows XP/2000/NT',
66+
'Windows 95/98/ME']
6767

68-
keywords = [u'readline',
69-
u'pyreadline']
68+
keywords = ['readline',
69+
'pyreadline']
7070

71-
classifiers = [u'Development Status :: 5 - Production/Stable',
72-
u'Environment :: Console',
73-
u'Operating System :: Microsoft :: Windows',
74-
u'License :: OSI Approved :: BSD License',
75-
u'Programming Language :: Python :: 2.4',
76-
u'Programming Language :: Python :: 2.5',
77-
u'Programming Language :: Python :: 2.6',
78-
u'Programming Language :: Python :: 2.7',
71+
classifiers = ['Development Status :: 5 - Production/Stable',
72+
'Environment :: Console',
73+
'Operating System :: Microsoft :: Windows',
74+
'License :: OSI Approved :: BSD License',
75+
'Programming Language :: Python :: 2.4',
76+
'Programming Language :: Python :: 2.5',
77+
'Programming Language :: Python :: 2.6',
78+
'Programming Language :: Python :: 2.7',
7979
]
8080

8181

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#
1818

1919
from distutils.core import setup
20-
execfile('pyreadline/release.py')
20+
exec(compile(open('pyreadline/release.py').read(), 'pyreadline/release.py', 'exec'))
2121

2222
try:
2323
import sphinx

0 commit comments

Comments
 (0)