summaryrefslogtreecommitdiff
path: root/pygments/lexers/other.py
diff options
context:
space:
mode:
authorPaulo Moura <pmoura@logtalk.org>2014-09-16 10:06:49 +0000
committerPaulo Moura <pmoura@logtalk.org>2014-09-16 10:06:49 +0000
commitd59a849ebf7430f7ec8e3895933e32fa63ce79bd (patch)
tree9c3b3ebfed24266d282e32d2f8a1f0ad1c579408 /pygments/lexers/other.py
parentee3d33a5fee236ccff80b6e0571b56e073883dce (diff)
downloadpygments-d59a849ebf7430f7ec8e3895933e32fa63ce79bd.tar.gz
Style change: use `1.0`and `0.0` instead of, respectively, `True` and `False` in the analyse_text() function.
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r--pygments/lexers/other.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py
index d21f7b30..37deca6e 100644
--- a/pygments/lexers/other.py
+++ b/pygments/lexers/other.py
@@ -693,15 +693,15 @@ class LogtalkLexer(RegexLexer):
def analyse_text(text):
if ':- object(' in text:
- return True
+ return 1.0
elif ':- protocol(' in text:
- return True
+ return 1.0
elif ':- category(' in text:
- return True
+ return 1.0
elif re.search('^:-\s[a-z]', text, re.M):
return 0.9
else:
- return False
+ return 0.0
def _shortened(word):