~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to twisted/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-22 22:52:47 UTC
  • Revision ID: james.westby@ubuntu.com-20060222225247-0mjb8ij9473m5zse
Tags: 2.2.0-1ubuntu1
Synchronize with Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- test-case-name: twisted -*-
1
2
 
2
3
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
3
4
# See LICENSE for details.
9
10
 
10
11
# Ensure the user is running the version of python we require.
11
12
import sys
12
 
if not hasattr(sys, "version_info") or sys.version_info < (2,2):
13
 
    raise RuntimeError("Twisted requires Python 2.2 or later.")
 
13
if not hasattr(sys, "version_info") or sys.version_info < (2,3):
 
14
    raise RuntimeError("Twisted requires Python 2.3 or later.")
14
15
del sys
15
16
 
16
17
# Ensure zope.interface is installed
25
26
del compat
26
27
 
27
28
# setup version
28
 
__version__ = '2.1.0'
 
29
__version__ = '2.2.0'