diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9a75affdb41a96fd71f4dc663f3c178f0ad171f..087d0de67da5b0faebcea69187293ed4ce75fc57 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,4 +3,3 @@ repos: rev: stable hooks: - id: black - language_version: python3.6 diff --git a/bin/make_cal.py b/bin/make_cal.py index eaa91d09a25e0805c60922ed239b8a088af6610d..6a9bee3aa6a7af8458638426f1e1b40c4edb5683 100755 --- a/bin/make_cal.py +++ b/bin/make_cal.py @@ -53,7 +53,7 @@ url = ( ) try: - print("Loading data from web service\n\t{}".format(url), file=sys.stderr) + print(f"Loading data from web service\n\t{url}", file=sys.stderr) response = urllib2.urlopen( url, # allow environment certificate bundle override @@ -62,7 +62,7 @@ try: data = response.read() observations = json.loads(data) except Exception as e: - print("Error loading data ({})".format(str(e)), file=sys.stderr) + print(f"Error loading data ({e})", file=sys.stderr) sys.exit(1)