comparison makeitso/python.py @ 239:cab05bfc59ab

fix typo
author Jeff Hammel <k0scist@gmail.com>
date Thu, 28 Jan 2016 12:24:25 -0800
parents a1a615aae3d1
children 5cb893831f53
comparison
equal deleted inserted replaced
238:a1a615aae3d1 239:cab05bfc59ab
113 113
114 # get package name from project 114 # get package name from project
115 allowable = set(string.letters + string.digits + '_') 115 allowable = set(string.letters + string.digits + '_')
116 package = variables['project'].lower() 116 package = variables['project'].lower()
117 package = ''.join([c for c in package 117 package = ''.join([c for c in package
118 if c in allowallable]) 118 if c in allowable])
119 # TODO better: translation matrix 119 # TODO better: translation matrix
120 variables['package'] = package 120 variables['package'] = package
121 121
122 # name of CLI main file 122 # name of CLI main file
123 variables['main'] = 'main' 123 variables['main'] = 'main'
157 def main(args=sys.argv[1:]): 157 def main(args=sys.argv[1:]):
158 """CLI""" 158 """CLI"""
159 cli = PythonPackageCLI(PythonPackageTemplate) 159 cli = PythonPackageCLI(PythonPackageTemplate)
160 cli(*args) 160 cli(*args)
161 161
162
162 if __name__ == '__main__': 163 if __name__ == '__main__':
163 main() 164 main()