cheezy fake test for proper identifier-ness. @param string: a L{str} which might or might not be a valid python identifier. @return: True or False
(string)
| 85 | |
| 86 | |
| 87 | def _isPythonIdentifier(string): |
| 88 | """ |
| 89 | cheezy fake test for proper identifier-ness. |
| 90 | |
| 91 | @param string: a L{str} which might or might not be a valid python |
| 92 | identifier. |
| 93 | @return: True or False |
| 94 | """ |
| 95 | textString = nativeString(string) |
| 96 | return " " not in textString and "." not in textString and "-" not in textString |
| 97 | |
| 98 | |
| 99 | def _isPackagePath(fpath): |
no test coverage detected