1. Jason R. Coombs
  2. python-ldap

Commits

stroeder  committed 153a69e

Parsing example: Avoid any platform-specific line processing issues by opening input file in binary mode

  • Participants
  • Parent commits f3ba634
  • Branches default

Comments (0)

Files changed (1)

File Doc/ldif.rst

View file
  • Ignore whitespace
             if i == dn: return
          self.writer.unparse(dn, entry)
 
-   parser = MyLDIF(open("input.ldif", 'r'), sys.stdout)
+   parser = MyLDIF(open("input.ldif", 'rb'), sys.stdout)
    parser.parse()