Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python-stdlib/string/manifest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
metadata(version="0.1.1")

module("string.py")
package("string", ("__init__.py",))
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@
punctuation = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"""
printable = digits + ascii_letters + punctuation + whitespace

__all__ = [
"whitespace",
"ascii_lowercase",
"ascii_uppercase",
"ascii_letters",
"digits",
"hexdigits",
"octdigits",
"punctuation",
"printable",
"translate",
]


def translate(s, map):
import io
Expand All @@ -25,3 +38,11 @@ def translate(s, map):
else:
sb.write(c)
return sb.getvalue()

try:
from . import templatelib as _templatelib
except ImportError:
pass
else:
templatelib = _templatelib
__all__.append("templatelib")
Loading