summaryrefslogtreecommitdiff
path: root/Lib/packaging/tests/fake_dists/grammar-1.0a4/grammar/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/packaging/tests/fake_dists/grammar-1.0a4/grammar/utils.py')
-rw-r--r--Lib/packaging/tests/fake_dists/grammar-1.0a4/grammar/utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/packaging/tests/fake_dists/grammar-1.0a4/grammar/utils.py b/Lib/packaging/tests/fake_dists/grammar-1.0a4/grammar/utils.py
new file mode 100644
index 0000000000..66ba796c3d
--- /dev/null
+++ b/Lib/packaging/tests/fake_dists/grammar-1.0a4/grammar/utils.py
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+from random import randint
+
+def is_valid_grammar(sentence):
+ if randint(0, 10) < 2:
+ return False
+ else:
+ return True