File: util.py

package info (click to toggle)
python-acme 1.12.0-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 700 kB
  • sloc: python: 4,263; makefile: 173
file content (7 lines) | stat: -rw-r--r-- 160 bytes parent folder | download
1
2
3
4
5
6
7
"""ACME utilities."""
import six


def map_keys(dikt, func):
    """Map dictionary keys."""
    return {func(key): value for key, value in six.iteritems(dikt)}