Skip to content

Commit

Permalink
Black format source code
Browse files Browse the repository at this point in the history
  • Loading branch information
saraedum committed Jun 25, 2024
1 parent d043c52 commit d483d76
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions flatsurvey/cache/externalize_pickles.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ def __init__(self, jsons, in_place, pickle_dir, report):
@click.command(name="externalize-pickles")
@click.argument("jsons", nargs=-1)
@click.option("--inplace", default=False, is_flag=True)
@click.option("--pickles", required=True, type=click.Path(exists=True), help="output directory")
@click.option(
"--pickles",
required=True,
type=click.Path(exists=True),
help="output directory",
)
def click(jsons, inplace, pickles):
return {
"goals": [ExternalizePickles],
Expand All @@ -59,7 +64,8 @@ def externalize(json):
value = json["pickle"]

import base64
value = base64.decodebytes(value.encode('ascii'))

value = base64.decodebytes(value.encode("ascii"))

if len(value) > 128:
from hashlib import sha256
Expand Down

0 comments on commit d483d76

Please sign in to comment.