OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- | 2 # -*- coding: utf-8 -*- |
3 | 3 |
4 """`cssmin` - A Python port of the YUI CSS compressor. | 4 """`cssmin` - A Python port of the YUI CSS compressor. |
5 | 5 |
6 :Copyright: | 6 :Copyright: |
7 | 7 |
8 Copyright 2011 - 2014 | 8 Copyright 2011 - 2014 |
9 Andr\xe9 Malo or his licensors, as applicable | 9 Andr\xe9 Malo or his licensors, as applicable |
10 | 10 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 p.add_option( | 237 p.add_option( |
238 '-w', '--wrap', type='int', default=None, metavar='N', | 238 '-w', '--wrap', type='int', default=None, metavar='N', |
239 help="Wrap output to approximately N chars per line.") | 239 help="Wrap output to approximately N chars per line.") |
240 | 240 |
241 options, args = p.parse_args() | 241 options, args = p.parse_args() |
242 sys.stdout.write(cssmin(sys.stdin.read(), wrap=options.wrap)) | 242 sys.stdout.write(cssmin(sys.stdin.read(), wrap=options.wrap)) |
243 | 243 |
244 | 244 |
245 if __name__ == '__main__': | 245 if __name__ == '__main__': |
246 main() | 246 main() |
OLD | NEW |