Fix cache_memoize to work with non-sequence data.

Review Request #11856 — Created Oct. 17, 2021 and submitted — Latest diff uploaded

Information

Djblets
release-2.x

Reviewers

The size checks in cache_memoize were causing it to fail when the
cached function was returning something other than a sequence. This
change fixes it so we only do those length checks for string types.

While I was in here I fixed up a few small style issues.

  • Used with a change that required this.
  • Ran unit tests.

Commits

Files