From: jlaine Date: Wed, 19 May 2010 08:22:20 +0000 (+0000) Subject: fix wrapped lines X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=410870e98c85639ac9646f61af06a1667c226ca3;p=matthijs%2Fupstream%2Fdjango-ldapdb.git fix wrapped lines git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@848 e071eeec-0327-468d-9b6a-08194a12b294 --- diff --git a/ldapdb/models/fields.py b/ldapdb/models/fields.py index 88b5252..fe91601 100644 --- a/ldapdb/models/fields.py +++ b/ldapdb/models/fields.py @@ -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):