Skip to content

Commit

Permalink
remove useless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maksyutov.vlad committed Sep 13, 2024
1 parent 807ef3d commit 8c34109
Show file tree
Hide file tree
Showing 79 changed files with 6 additions and 2,890 deletions.
10 changes: 0 additions & 10 deletions admin/bench_pbkdf2.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
from timeit import Timer


# =============================================================================
# imports
# =============================================================================
# core

try:
Expand All @@ -24,9 +21,6 @@
# local


# =============================================================================
# main
# =============================================================================
def main():
# --------------------------------------------------------------
# config
Expand Down Expand Up @@ -146,7 +140,3 @@ def na(name):

if __name__ == "__main__":
sys.exit(main(*sys.argv[1:]))

# =============================================================================
# eoc
# =============================================================================
25 changes: 0 additions & 25 deletions admin/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
root = os.path.join(os.path.dirname(__file__), os.path.pardir)


# =============================================================================
# benchmarking support
# =============================================================================
class benchmark:
"""class to hold various benchmarking helpers"""

Expand Down Expand Up @@ -78,9 +75,6 @@ def pptime(secs, precision=3):
return "%.*g sec" % (precision, sec)


# =============================================================================
# utils
# =============================================================================
sample_config_1p = os.path.join(root, "passlib", "tests", "sample_config_1s.cfg")


Expand Down Expand Up @@ -118,9 +112,6 @@ class AnotherHandler(BlankHandler):
OTHER = "setecastronomy"


# =============================================================================
# CryptContext benchmarks
# =============================================================================
@benchmark.constructor()
def test_context_from_path():
"""test speed of CryptContext.from_path()"""
Expand Down Expand Up @@ -191,9 +182,6 @@ def helper():
return helper


# =============================================================================
# handler benchmarks
# =============================================================================
@benchmark.constructor()
def test_bcrypt_builtin():
"test bcrypt 'builtin' backend"
Expand Down Expand Up @@ -285,9 +273,6 @@ def helper():
return helper


# =============================================================================
# crypto utils
# =============================================================================
@benchmark.constructor()
def test_pbkdf2_sha1():
from passlib.crypto.digest import pbkdf2_hmac
Expand All @@ -312,9 +297,6 @@ def helper():
return helper


# =============================================================================
# entropy estimates
# =============================================================================
@benchmark.constructor()
def test_average_entropy():
from passlib.pwd import _self_info_rate
Expand All @@ -330,9 +312,6 @@ def helper():
return helper


# =============================================================================
# main
# =============================================================================
def main(*args):
source = globals()
if args:
Expand All @@ -349,7 +328,3 @@ def main(*args):
import sys

main(*sys.argv[1:])

# =============================================================================
# eof
# =============================================================================
10 changes: 0 additions & 10 deletions admin/regen.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
helper script which rebuilds all autogenerated bits of code w/in passlib.
"""

# =============================================================================
# imports
# =============================================================================
# core
import datetime
import re
Expand All @@ -16,9 +13,6 @@
"replace_section",
]

# =============================================================================
# helpers
# =============================================================================

now = datetime.datetime.now().strftime("%Y-%m-%d")

Expand Down Expand Up @@ -109,7 +103,3 @@ def main():

if __name__ == "__main__":
main()

# =============================================================================
# eof
# =============================================================================
4 changes: 0 additions & 4 deletions choose_rounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,3 @@ def helper():

if __name__ == "__main__":
sys.exit(main(*sys.argv[1:]))

# =============================================================================
# eof
# =============================================================================
28 changes: 0 additions & 28 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"""

# =============================================================================
# environment setup
# =============================================================================
import sys
import os
from passlib import __version__ as release
Expand All @@ -35,9 +32,6 @@

warnings.filterwarnings("ignore", category=DeprecationWarning, module="passlib[.].*")

# =============================================================================
# imports
# =============================================================================


# read env var for tags, needed since "python setup.py build_sphinx"
Expand All @@ -49,9 +43,6 @@
# which contains some sphinx extensions used by Passlib.
# (https://foss.heptapod.net/doc-utils/cloud_sptheme)

# =============================================================================
# General configuration
# =============================================================================

# If your documentation needs a minimal Sphinx version, state it here.
needs_sphinx = "1.6"
Expand Down Expand Up @@ -166,16 +157,10 @@
"python": ("https://docs.python.org/3", None),
}

# =============================================================================
# Options for all output
# =============================================================================
todo_include_todos = True
keep_warnings = True
issue_tracker_url = "https://foss.heptapod.net/python-libs/passlib/issues/{issue}"

# =============================================================================
# Options for HTML output
# =============================================================================

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
Expand Down Expand Up @@ -280,9 +265,6 @@
# Output file base name for HTML help builder.
htmlhelp_basename = project + "Doc"

# =============================================================================
# site-specific html output
# =============================================================================
if tags.has("for-pypi"): # noqa: F821
extensions.append("cloud_sptheme.ext.auto_redirect")
auto_redirect_domain_url = "https://passlib.readthedocs.io"
Expand All @@ -294,9 +276,6 @@
googleanalytics_path="/passlib/",
)

# =============================================================================
# Options for LaTeX output
# =============================================================================

# The paper size ('letter' or 'a4').
##latex_paper_size = 'letter'
Expand Down Expand Up @@ -333,14 +312,7 @@
# If false, no module index is generated.
##latex_domain_indices = True

# =============================================================================
# Options for manual page output
# =============================================================================

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [(master_doc, project, project + " Documentation", [author], 1)]

# =============================================================================
# EOF
# =============================================================================
11 changes: 0 additions & 11 deletions passlib/_setup/stamp.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
"""update version string during build"""

# =============================================================================
# imports
# =============================================================================
# core
import datetime
from distutils.dist import Distribution
Expand All @@ -21,9 +18,6 @@
]


# =============================================================================
# helpers
# =============================================================================
def get_command_class(opts, name):
return opts["cmdclass"].get(name) or Distribution().get_command_class(name)

Expand Down Expand Up @@ -152,8 +146,3 @@ def finalize_options(self):
target.remove(package)

opts["cmdclass"]["build_py"] = build_py


# =============================================================================
# eof
# =============================================================================
Loading

0 comments on commit 8c34109

Please sign in to comment.