1 `cssmin.py` - A Python port of the YUI CSS compressor. 2 3 Copyright (c) 2010 Zachary Voase 4 5 Permission is hereby granted, free of charge, to any person 6 obtaining a copy of this software and associated documentation 7 files (the "Software"), to deal in the Software without 8 restriction, including without limitation the rights to use, 9 copy, modify, merge, publish, distribute, sublicense, and/or sell 10 copies of the Software, and to permit persons to whom the 11 Software is furnished to do so, subject to the following 12 conditions: 13 14 The above copyright notice and this permission notice shall be 15 included in all copies or substantial portions of the Software. 16 17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 19 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 21 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24 OTHER DEALINGS IN THE SOFTWARE. 25 26 ------------------------------------------------------------------------------- 27 28 This software contains portions of the YUI CSS Compressor, notably some regular 29 expressions for reducing the size of CSS. The YUI Compressor source code can be 30 found at <http://github.com/yui/yuicompressor>, and is licensed as follows: 31 32 > YUI Compressor Copyright License Agreement (BSD License) 33 > 34 > Copyright (c) 2009, Yahoo! Inc. 35 > All rights reserved. 36 > 37 > Redistribution and use of this software in source and binary forms, 38 > with or without modification, are permitted provided that the following 39 > conditions are met: 40 > 41 > * Redistributions of source code must retain the above 42 > copyright notice, this list of conditions and the 43 > following disclaimer. 44 > 45 > * Redistributions in binary form must reproduce the above 46 > copyright notice, this list of conditions and the 47 > following disclaimer in the documentation and/or other 48 > materials provided with the distribution. 49 > 50 > * Neither the name of Yahoo! Inc. nor the names of its 51 > contributors may be used to endorse or promote products 52 > derived from this software without specific prior 53 > written permission of Yahoo! Inc. 54 > 55 > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 56 > AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 57 > IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 58 > DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 59 > FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 60 > DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 61 > SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 62 > CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 63 > OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 64 > OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 65