~malept/ubuntu/lucid/python2.6/dev-dependency-fix

« back to all changes in this revision

Viewing changes to Lib/plat-irix5/CL.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-13 12:51:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090213125100-uufgcb9yeqzujpqw
Tags: upstream-2.6.1
ImportĀ upstreamĀ versionĀ 2.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Backward compatible module CL.
 
2
# All relevant symbols are now defined in the module cl.
 
3
from warnings import warnpy3k
 
4
warnpy3k("the CL module has been removed in Python 3.0", stacklevel=2)
 
5
del warnpy3k
 
6
 
 
7
try:
 
8
    from cl import *
 
9
except ImportError:
 
10
    from CL_old import *
 
11
else:
 
12
    del CompressImage
 
13
    del DecompressImage
 
14
    del GetAlgorithmName
 
15
    del OpenCompressor
 
16
    del OpenDecompressor
 
17
    del QueryAlgorithms
 
18
    del QueryMaxHeaderSize
 
19
    del QueryScheme
 
20
    del QuerySchemeFromName
 
21
    del SetDefault
 
22
    del SetMax
 
23
    del SetMin
 
24
    try:
 
25
        del cvt_type
 
26
    except NameError:
 
27
        pass
 
28
    del error