]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python: fix unicode escape in doc string
authorJoe Guo <joeg@catalyst.net.nz>
Wed, 11 Apr 2018 04:32:19 +0000 (16:32 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 13 Apr 2018 05:27:12 +0000 (07:27 +0200)
The doc string has `\u` mark inside, which will cause encoding error in
py3. prefix `r` to doc string to fix.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/common.py

index 5c0bd95f0897ea68d603a37ca6d899005be29349..2d0ff620baee5a2980b48a9960be93febe79ad5d 100644 (file)
@@ -23,7 +23,7 @@ from samba.net import Net
 
 
 def _get_user_realm_domain(user):
-    """ get the realm or the domain and the base user
+    r""" get the realm or the domain and the base user
         from user like:
         * username
         * DOMAIN\username