Mercurial > p > roundup > code
diff roundup/password.py @ 7177:d787f7282ea3
Move imports to top of file out of test code path.
See if this helps with time regression under python2.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 26 Feb 2023 11:06:04 -0500 |
| parents | f6b24a8524cd |
| children | 2de72f75f2f8 |
line wrap: on
line diff
--- a/roundup/password.py Sun Feb 26 10:42:15 2023 -0500 +++ b/roundup/password.py Sun Feb 26 11:06:04 2023 -0500 @@ -19,8 +19,10 @@ """ __docformat__ = 'restructuredtext' +import os import re import string +import sys import warnings from base64 import b64encode, b64decode @@ -192,8 +194,6 @@ if config: rounds = config.PASSWORD_PBKDF2_DEFAULT_ROUNDS else: - import os - import sys if ("pytest" in sys.modules and "PYTEST_CURRENT_TEST" in os.environ): # Set rounds to 1000 if no config is passed and
