File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 11metadata (version = "0.1.1" )
22
3- module ("string.py" )
3+ package ("string" , ( "__init__ .py",) )
Original file line number Diff line number Diff line change 99punctuation = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"""
1010printable = digits + ascii_letters + punctuation + whitespace
1111
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+
1225
1326def translate (s , map ):
1427 import io
@@ -25,3 +38,11 @@ def translate(s, map):
2538 else :
2639 sb .write (c )
2740 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" )
You can’t perform that action at this time.
0 commit comments