Merge branch '577_denoise_video_transcoding'
[mediagoblin.git] / mediagoblin / tools / url.py
index 78b5dd63b2262da4ef8f04a55aa4f1d88fd1b756..de16536ca4290d616831c73ba6a1c289009e3738 100644 (file)
@@ -1,5 +1,5 @@
 # GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+# Copyright (C) 2011, 2012 MediaGoblin contributors.  See AUTHORS.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
@@ -15,6 +15,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import re
+# This import *is* used; see word.encode('tranlit/long') below.
 import translitcodec
 
 
@@ -27,6 +28,7 @@ def slugify(text, delim=u'-'):
     """
     result = []
     for word in _punct_re.split(text.lower()):
+        # Uses translitcodec!
         word = word.encode('translit/long')
         if word:
             result.append(word)