aboutsummaryrefslogtreecommitdiff
path: root/rsa/util.py
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-07-29 02:21:24 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-07-29 02:21:24 +0000
commiteff7791866f59afed388d96dc84f083f982eee07 (patch)
tree51130a47b9f85ff001627c9fdabf69dfc7293a1b /rsa/util.py
parent57a2b80963eed0bd2ad8068e070702b05dd65fbf (diff)
parent933b43f37aa0ab970da052e42eff858016c6a5c6 (diff)
downloadrsa-eff7791866f59afed388d96dc84f083f982eee07.tar.gz
Upgrade python/rsa to version-4.6 am: 248aba47a6 am: fba0d0316f am: 24f0088831 am: b8eae8a9ee am: 933b43f37a
Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1361102 Change-Id: Iccbf1dfd0ed742986e1d66a257d2d3b3da32acf3
Diffstat (limited to 'rsa/util.py')
-rw-r--r--rsa/util.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/rsa/util.py b/rsa/util.py
index 29d5eb1..cb31c46 100644
--- a/rsa/util.py
+++ b/rsa/util.py
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-#
# Copyright 2011 Sybren A. Stüvel <sybren@stuvel.eu>
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,15 +14,13 @@
"""Utility functions."""
-from __future__ import with_statement, print_function
-
import sys
from optparse import OptionParser
import rsa.key
-def private_to_public():
+def private_to_public() -> None:
"""Reads a private key and outputs the corresponding public key."""
# Parse the CLI options