Mercurial > kallithea
comparison setup.py @ 5374:d69aa464f373
cleanup: consistently use 'except ... as ...:'
Use the Python 2.6+ syntax instead of the old confusing 'except ..., ...'
syntax.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sun, 09 Aug 2015 02:17:14 +0200 |
parents | eb337bdaa0e1 |
children | a5a9ea76fa31 |
comparison
equal
deleted
inserted
replaced
5373:e84c2738fbd8 | 5374:d69aa464f373 |
---|---|
108 CHANGELOG_FILE = 'docs/changelog.rst' | 108 CHANGELOG_FILE = 'docs/changelog.rst' |
109 try: | 109 try: |
110 long_description = open(README_FILE).read() + '\n\n' + \ | 110 long_description = open(README_FILE).read() + '\n\n' + \ |
111 open(CHANGELOG_FILE).read() | 111 open(CHANGELOG_FILE).read() |
112 | 112 |
113 except IOError, err: | 113 except IOError as err: |
114 sys.stderr.write( | 114 sys.stderr.write( |
115 "[WARNING] Cannot find file specified as long_description (%s)\n or " | 115 "[WARNING] Cannot find file specified as long_description (%s)\n or " |
116 "changelog (%s) skipping that file" % (README_FILE, CHANGELOG_FILE) | 116 "changelog (%s) skipping that file" % (README_FILE, CHANGELOG_FILE) |
117 ) | 117 ) |
118 long_description = description | 118 long_description = description |