reportlab/lib/units.py
changeset 494 54257447cfe9
parent 41 75f8140d039b
child 895 e43766aef23f
equal deleted inserted replaced
493:89dbc0b19ede 494:54257447cfe9
     1 #!/bin/env python
     1 #!/bin/env python
     2 ###############################################################################
     2 #copyright ReportLab Inc. 2000
     3 #
     3 #see license.txt for license details
     4 #	ReportLab Public License Version 1.0
     4 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/lib/units.py?cvsroot=reportlab
     5 #
     5 #$Header: /tmp/reportlab/reportlab/lib/units.py,v 1.2 2000/10/25 08:57:45 rgbecker Exp $
     6 #   Except for the change of names the spirit and intention of this
     6 __version__=''' $Id: units.py,v 1.2 2000/10/25 08:57:45 rgbecker Exp $ '''
     7 #   license is the same as that of Python
       
     8 #
       
     9 #	(C) Copyright ReportLab Inc. 1998-2000.
       
    10 #
       
    11 #
       
    12 # All Rights Reserved
       
    13 #
       
    14 # Permission to use, copy, modify, and distribute this software and its
       
    15 # documentation for any purpose and without fee is hereby granted, provided
       
    16 # that the above copyright notice appear in all copies and that both that
       
    17 # copyright notice and this permission notice appear in supporting
       
    18 # documentation, and that the name of ReportLab not be used
       
    19 # in advertising or publicity pertaining to distribution of the software
       
    20 # without specific, written prior permission. 
       
    21 # 
       
    22 #
       
    23 # Disclaimer
       
    24 #
       
    25 # ReportLab Inc. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
       
    26 # SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
       
    27 # IN NO EVENT SHALL ReportLab BE LIABLE FOR ANY SPECIAL, INDIRECT
       
    28 # OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
       
    29 # OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
       
    30 # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
    31 # PERFORMANCE OF THIS SOFTWARE. 
       
    32 #
       
    33 ###############################################################################
       
    34 #	$Log: units.py,v $
       
    35 #	Revision 1.1  2000/03/08 13:00:28  andy_robinson
       
    36 #	Initial Checkin
       
    37 #
       
    38 __version__=''' $Id: units.py,v 1.1 2000/03/08 13:00:28 andy_robinson Exp $ '''
       
    39 
     7 
    40 inch = 72.0
     8 inch = 72.0
    41 cm = inch / 2.54
     9 cm = inch / 2.54
    42 
    10