Skip to content

8.1

Compare
Choose a tag to compare
@facelessuser facelessuser released this 08 Feb 19:57
2737567

8.1

  • NEW: Add is_magic function to the glob and fnamtch library.
  • NEW: fnmatch now has escape available via its API. The fnmatch variant uses filename logic instead of path logic.
  • NEW: Deprecate raw_escape in glob as it is very niche and the same can be accomplished simply by using #!py3 codecs.decode(string, 'unicode_escape') and then using escape.
  • FIX: Use os.fspath to convert path-like objects to string/bytes, whatever the return from __fspath__ is what Wildcard Match will accept. Don't try to convert paths via __str__ or __bytes__ as not all path-like objects may implement both.
  • FIX: Better checking of types to ensure consistent failure if the path, pattern, or root directory of are not all of type str or bytes.
  • FIX: Some internal fixes and refactoring.
  • FIX: Refactor code to take advantage of bracex's ability to abort parsing on extremely large pattern expansions. Patterns like {1..10000000} will now abort dramatically quicker. Require bracex 2.1.1 which aborts much quicker.
  • FIX: Fix some corner cases where limit would not abort correctly.