fix wrapped lines
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Wed, 19 May 2010 08:22:20 +0000 (08:22 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Wed, 19 May 2010 08:22:20 +0000 (08:22 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@848 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/models/fields.py

index 88b52522814bf259ec164a731ad3b265be686fd9..fe91601f6053d8c9c74d27f3e330f880201d242d 100644 (file)
@@ -32,10 +32,10 @@ class CharField(fields.CharField):
         Used by the default implementations of ``get_db_prep_save``and
         `get_db_prep_lookup```
         """
-        return value.replace('\\', '\\5c')
-                    .replace('*', '\\2a')
-                    .replace('(', '\\28')
-                    .replace(')', '\\29')
+        return value.replace('\\', '\\5c') \
+                    .replace('*', '\\2a') \
+                    .replace('(', '\\28') \
+                    .replace(')', '\\29') \
                     .replace('\0', '\\00')
 
 class ImageField(fields.Field):