# HG changeset patch # User Jeff Hammel # Date 1453398494 28800 # Node ID a1a615aae3d10f1d042d8221837c03744ab67873 # Parent 70b5410e4ede71e402ab6a75f2459a2c882667f9 dont give up so easily diff -r 70b5410e4ede -r a1a615aae3d1 makeitso/python.py --- a/makeitso/python.py Tue Dec 15 13:39:17 2015 -0800 +++ b/makeitso/python.py Thu Jan 21 09:48:14 2016 -0800 @@ -113,9 +113,11 @@ # get package name from project allowable = set(string.letters + string.digits + '_') - if not set(variables['project']).issubset(allowable): - raise AssertionError("Illegal fields in package name") - variables['package'] = variables['project'].lower() + package = variables['project'].lower() + package = ''.join([c for c in package + if c in allowallable]) + # TODO better: translation matrix + variables['package'] = package # name of CLI main file variables['main'] = 'main'