If the collection doesn't exist yet, OSError(2, 'No such file or directory') is raised. https://travis-ci.org/untitaker/vdirsyncer/jobs/42540595
- Update docstring for optional MD5-APR1/BCRYPT support via passlib. - Support the "md5" and "bcrypt" htpasswd_encryption config values. - Conditionally import the required passlib components if either "md5" or "bcrypt" is requested in the configuration file. - Test bcrypt backend availability upon import. - First define verification functions, then conditionally import external dependencies. - Consolidate: use context manager for reading credential file. - Consolidate: save one call to strip() while parsing. - Consolidate: break long lines, clarify comments and docstrings. - Consolidate: use verification function mapping for improving maintainability.
We should burn PEP 235, bicameral scripts, encodings, Python2/3 compatibility, Windows, MacOS X, filenames, unicode (including composite characters), and the whole world. And LF/CR too, of course. Let's recreate a language relying on only two characters. Anyone interested?