Skip to content
This repository has been archived by the owner on Apr 29, 2023. It is now read-only.

Commit

Permalink
setup.py: refine check for supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pabigot committed Oct 19, 2014
1 parent b2aaf2b commit 9e8a453
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@

# Require Python 2.6 or higher or Python 3.1 or higher
if (sys.version_info[:2] < (2, 6)) or ((sys.version_info[0] == 3) and sys.version_info[:2] < (3, 1)):
raise ValueError('PyXB requires:\n\tPython2 version 2.6 or later; or\n\tPython3 version 3.1 or later\n(You have %s.)' % (sys.version,))
raise ValueError('''PyXB requires:
Python2 version 2.6 or later; or
Python3 version 3.1 or later
(You have %s.)''' % (sys.version,))

import os
import stat
Expand Down

0 comments on commit 9e8a453

Please sign in to comment.