We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34c4ee1 commit 8e5d6a5Copy full SHA for 8e5d6a5
2 files changed
python-stdlib/string/manifest.py
@@ -1,3 +1,3 @@
1
metadata(version="0.1.1")
2
3
-module("string.py")
+package("string", ("__init__.py",))
python-stdlib/string/string.py python-stdlib/string/string/__init__.pypython-stdlib/string/string.py renamed to python-stdlib/string/string/__init__.py
@@ -9,6 +9,19 @@
9
punctuation = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"""
10
printable = digits + ascii_letters + punctuation + whitespace
11
12
+__all__ = [
13
+ "whitespace",
14
+ "ascii_lowercase",
15
+ "ascii_uppercase",
16
+ "ascii_letters",
17
+ "digits",
18
+ "hexdigits",
19
+ "octdigits",
20
+ "punctuation",
21
+ "printable",
22
+ "translate",
23
+]
24
+
25
26
def translate(s, map):
27
import io
@@ -25,3 +38,11 @@ def translate(s, map):
38
else:
39
sb.write(c)
40
return sb.getvalue()
41
42
+try:
43
+ from . import templatelib as _templatelib
44
+except ImportError:
45
+ pass
46
+else:
47
+ templatelib = _templatelib
48
+ __all__.append("templatelib")
0 commit comments