selinon / selinonlib

*depracated* CLI interface for Selinon with a pack of prepared utilities for a user
https://selinonlib.readthedocs.io/
Other
9 stars 3 forks source link

Get rid of dill dependency #14

Closed fridex closed 7 years ago

fridex commented 7 years ago

dill is used for getting source code from imported predicates. This source code is after that parsed to get names of arguments to decide what arguments predicates accept. This step can be simplified by using:

fun.__code__.co_varnames[:fun.__code__.co_argcount]