Skip to content

Commit

Permalink
more cleans for model/misc
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Mar 29, 2012
1 parent c5f44bc commit 323049f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ckan/model/misc.py
Expand Up @@ -2,7 +2,6 @@
Contains miscelaneous set of DB-related functions
"""

import re

_special_characters = '%_'
def escape_sql_like_special_characters(term, escape='\\'):
Expand All @@ -14,4 +13,3 @@ def escape_sql_like_special_characters(term, escape='\\'):
for ch in escape + _special_characters:
term = term.replace(ch, escape+ch)
return term

0 comments on commit 323049f

Please sign in to comment.