From d2e943c6708b0a2051c719563d79f8db1fb37b17 Mon Sep 17 00:00:00 2001 From: shimizukawa <> Date: Sun, 10 Apr 2011 02:09:27 +0900 Subject: [PATCH] remove syntax rely on python2. --- eggsetup.py | 2 +- pyreadline/release.py | 50 +++++++++++++++++++++---------------------- setup.py | 2 +- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/eggsetup.py b/eggsetup.py index b5bcf75..7661d85 100644 --- a/eggsetup.py +++ b/eggsetup.py @@ -8,7 +8,7 @@ #***************************************************************************** import glob from setuptools import setup,find_packages -execfile('pyreadline/release.py') +exec(compile(open('pyreadline/release.py').read(), 'pyreadline/release.py', 'exec')) setup(name=name, version = version, diff --git a/pyreadline/release.py b/pyreadline/release.py index 43859f6..38926f6 100644 --- a/pyreadline/release.py +++ b/pyreadline/release.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -u"""Release data for the pyreadline project. +"""Release data for the pyreadline project. $Id$""" @@ -13,23 +13,23 @@ $Id$""" # Name of the package for release purposes. This is the name which labels # the tarballs and RPMs made by distutils, so it's best to lowercase it. -name = u'pyreadline' +name = 'pyreadline' # For versions with substrings (like 0.6.16.svn), use an extra . to separate # the new substring. We have to avoid using either dashes or underscores, # because bdist_rpm does not accept dashes (an RPM) convention, and # bdist_deb does not accept underscores (a Debian convention). -branch = u'' +branch = '' -version = u'1.7' +version = '1.7' -revision = u'$Revision$' +revision = '$Revision$' -description = u"A python implmementation of GNU readline." +description = "A python implmementation of GNU readline." long_description = \ -u""" +""" The pyreadline package is a python implementation of GNU readline functionality it is based on the ctypes based UNC readline package by Gary Bishop. It is not complete. It has been tested for use with windows 2000 and windows xp. @@ -51,31 +51,31 @@ Features: .. _repository: """ -license = u'BSD' +license = 'BSD' -authors = {u'Jorgen' : (u'Jorgen Stenarson',u'jorgen.stenarson@bostream.nu'), - u'Gary': (u'Gary Bishop', ''), - u'Jack': (u'Jack Trainor', ''), +authors = {'Jorgen' : ('Jorgen Stenarson','jorgen.stenarson@bostream.n'), + 'Gary': ('Gary Bishop', ''), + 'Jack': ('Jack Trainor', ''), } -url = u'http://ipython.scipy.org/moin/PyReadline/Intro' +url = 'http://ipython.scipy.org/moin/PyReadline/Intro' -download_url = u'https://launchpad.net/pyreadline/+download' +download_url = 'https://launchpad.net/pyreadline/+download' -platforms = [u'Windows XP/2000/NT', - u'Windows 95/98/ME'] +platforms = ['Windows XP/2000/NT', + 'Windows 95/98/ME'] -keywords = [u'readline', - u'pyreadline'] +keywords = ['readline', + 'pyreadline'] -classifiers = [u'Development Status :: 5 - Production/Stable', - u'Environment :: Console', - u'Operating System :: Microsoft :: Windows', - u'License :: OSI Approved :: BSD License', - u'Programming Language :: Python :: 2.4', - u'Programming Language :: Python :: 2.5', - u'Programming Language :: Python :: 2.6', - u'Programming Language :: Python :: 2.7', +classifiers = ['Development Status :: 5 - Production/Stable', + 'Environment :: Console', + 'Operating System :: Microsoft :: Windows', + 'License :: OSI Approved :: BSD License', + 'Programming Language :: Python :: 2.4', + 'Programming Language :: Python :: 2.5', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', ] diff --git a/setup.py b/setup.py index 79a698b..504b125 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ if os.path.exists('MANIFEST'): os.remove('MANIFEST') # from distutils.core import setup -execfile('pyreadline/release.py') +exec(compile(open('pyreadline/release.py').read(), 'pyreadline/release.py', 'exec')) try: import sphinx