Skip to content

Commit b5002ea

Browse files
committed
Version 0.1.0 release
1 parent 164a6a5 commit b5002ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ But, different lines will be included.
7777
With `django` installed it will include
7878
both `try:` and `if django is not None:` conditions.
7979

80-
When running without `django` installed it will include `except ImportError:`.
80+
When running without `django` installed,
81+
it will include `except ImportError:` line.
8182

8283

8384
## Writting pragma rules
@@ -88,8 +89,9 @@ Format for pragma rules is:
8889
"pragma-condition": pragma-name
8990
```
9091

91-
Code inside `"pragma-condition"` is evaluted with `exec`.
92+
Code inside `"pragma-condition"` is evaluted with `eval`.
9293
Make sure that the input you pass there is trusted!
94+
`"pragma-condition"` must return `bool` value after evaluation.
9395

9496
We also provide a bunch of helpers to make writing rules easier:
9597

0 commit comments

Comments
 (0)