MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / validate_string

Function validate_string

scripts/effectUsedBy.py:119–127  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

117 else: return 0.0
118
119def validate_string(s):
120 try:
121 s.encode('ascii')
122 except (KeyboardInterrupt, SystemExit):
123 raise
124 except Exception:
125 return False
126 else:
127 return True
128
129# Connect to database and set up cursor
130db = sqlite3.connect(os.path.expanduser(options.database))

Callers 1

effectUsedBy.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected