Add a utility function for encoding ETags to SHAs.
Review Request #7168 — Created April 5, 2015 and submitted
This adds an
encode_etag()function that takes a string and turns it
into a SHA. It's meant for use when setting ETag headers.The
WebAPIResourcecode now uses this as well.
Unit tests pass.
Used this in an upcoming change.
| Description | From | Last Updated |
|---|---|---|
|
'sha1' imported but unused |
|
Tool: Pyflakes Processed Files: djblets/webapi/resources.py djblets/util/http.py Tool: PEP8 Style Checker Processed Files: djblets/webapi/resources.py djblets/util/http.py