aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/face_coverage.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/theme-studio/face_coverage.py')
-rw-r--r--scripts/theme-studio/face_coverage.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/theme-studio/face_coverage.py b/scripts/theme-studio/face_coverage.py
index c6200e05c..57b44815a 100644
--- a/scripts/theme-studio/face_coverage.py
+++ b/scripts/theme-studio/face_coverage.py
@@ -179,12 +179,12 @@ def classify(name, items, src, pkgfaces):
if name == 'emacs-core':
return 'core'
c = collections.Counter(bucket_of_source(src.get(f, '')) for f in items)
- loaded = c['elpa'] + c['builtin'] + c['user'] + c['other']
- if loaded == 0:
+ elpa, builtin, user, other = c['elpa'], c['builtin'], c['user'], c['other']
+ if elpa + builtin + user + other == 0:
return 'package' if any(f in pkgfaces for f in items) else 'general'
- if c['elpa'] >= max(c['builtin'], c['user'], c['other']):
+ if elpa >= max(builtin, user, other):
return 'package'
- if c['other'] > c['builtin'] and c['other'] >= c['elpa']:
+ if other > builtin and other >= elpa:
return 'package'
return 'general'