Mercurial > hg
comparison setup.py @ 7008:8fee8ff13d37
use Exception(args)-style raising consistently (py3k compatibility)
author | Peter Ruibal <peter.ruibal@intel.com> |
---|---|
date | Mon, 08 Sep 2008 13:07:00 +0200 |
parents | 359e93ceee3a |
children | 2c1f18b88b6a |
comparison
equal
deleted
inserted
replaced
7007:a6b74fbb5ce0 | 7008:8fee8ff13d37 |
---|---|
5 # 'python setup.py install', or | 5 # 'python setup.py install', or |
6 # 'python setup.py --help' for more options | 6 # 'python setup.py --help' for more options |
7 | 7 |
8 import sys | 8 import sys |
9 if not hasattr(sys, 'version_info') or sys.version_info < (2, 3, 0, 'final'): | 9 if not hasattr(sys, 'version_info') or sys.version_info < (2, 3, 0, 'final'): |
10 raise SystemExit, "Mercurial requires python 2.3 or later." | 10 raise SystemExit("Mercurial requires python 2.3 or later.") |
11 | 11 |
12 import os | 12 import os |
13 import shutil | 13 import shutil |
14 import tempfile | 14 import tempfile |
15 from distutils.core import setup, Extension | 15 from distutils.core import setup, Extension |