# HG changeset patch # User Teemu Piippo # Date 1441419936 -10800 # Node ID 4c06dfae9beb07b119fb8d53e1c47941ccfde91e # Parent f96730dee0263e6f5a5ae0adbd3defda3f864e9b Remove the license header from munge.py (LICENSE already has it) Update copyright year diff -r f96730dee026 -r 4c06dfae9beb LICENSE --- a/LICENSE Sat Sep 05 05:24:38 2015 +0300 +++ b/LICENSE Sat Sep 05 05:25:36 2015 +0300 @@ -1,6 +1,5 @@ - - - Copyright 2014 Teemu Piippo + + Copyright 2014, 2015 Teemu Piippo All rights reserved. Redistribution and use in source and binary forms, with or without @@ -24,4 +23,4 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff -r f96730dee026 -r 4c06dfae9beb munge.py --- a/munge.py Sat Sep 05 05:24:38 2015 +0300 +++ b/munge.py Sat Sep 05 05:25:36 2015 +0300 @@ -4,34 +4,6 @@ Provides the munge function. ''' -''' - Copyright 2015 Teemu Piippo - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -''' - import string mungechars = 'аɓᴄđеƒɡɦіјķɭṁɳорqŗѕƫᴜᴠᴡхуᴢАВСḌЕḞǴНІЈКLМΝОРQɌЅТÙⅤⱲХΥΖ' mungedict = dict (zip (string.ascii_lowercase + string.ascii_uppercase, mungechars)) @@ -49,4 +21,4 @@ ''' Munges the given string ''' - return ''.join ([mungeone (ch) for ch in a]) \ No newline at end of file + return ''.join ([mungeone (ch) for ch in a])