[ldapparser] simplify extid splitting
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 24 Nov 2015 14:05:50 +0100
changeset 10906 e1ce0866afe9
parent 10905 adffe1308a8f
child 10907 9ae707db5265
[ldapparser] simplify extid splitting
sobjects/ldapparser.py
--- a/sobjects/ldapparser.py	Mon Nov 23 14:23:08 2015 +0100
+++ b/sobjects/ldapparser.py	Tue Nov 24 14:05:50 2015 +0100
@@ -186,7 +186,7 @@
 
     def is_deleted(self, extidplus, etype, eid):
         try:
-            extid, _ = extidplus.rsplit(b'@@', 1)
+            extid = extidplus.rsplit(b'@@', 1)[0]
         except ValueError:
             # for some reason extids here tend to come in both forms, e.g:
             # dn, dn@@Babar