Add missing import of sys in ms_schema.py
authorAndrej <andiges23@gmail.com>
Thu, 19 Jan 2017 15:24:34 +0000 (16:24 +0100)
committerUri Simchoni <uri@samba.org>
Tue, 21 Feb 2017 08:51:18 +0000 (09:51 +0100)
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
python/samba/ms_schema.py

index c16693c9b5ab08469816de5650b172b689bf0bb0..245ce3f2a60832e89d6ff54498245f42c0c794eb 100644 (file)
@@ -117,6 +117,7 @@ def __read_folded_line(f, buffer):
 
 def __read_raw_entries(f):
     """reads an LDIF entry, only unfolding lines"""
 
 def __read_raw_entries(f):
     """reads an LDIF entry, only unfolding lines"""
+    import sys
 
     # will not match options after the attribute type
     attr_type_re = re.compile("^([A-Za-z]+[A-Za-z0-9-]*):")
 
     # will not match options after the attribute type
     attr_type_re = re.compile("^([A-Za-z]+[A-Za-z0-9-]*):")