aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts
diff options
context:
space:
mode:
authorRogério Brito <rbrito@ime.usp.br>2015-03-01 02:04:05 -0300
committerRogério Brito <rbrito@ime.usp.br>2015-03-01 02:04:05 -0300
commitf46044c66663049e286c20ee015db99d47d9dd8a (patch)
tree2cb6012ef82b16d62e4caf392cd5f3d0a712be18 /devscripts
parenta6abd8dc822fb70852437ab5a77ced5f633739f8 (diff)
downloadyoutube-dl-f46044c66663049e286c20ee015db99d47d9dd8a.zip
youtube-dl-f46044c66663049e286c20ee015db99d47d9dd8a.tar.gz
youtube-dl-f46044c66663049e286c20ee015db99d47d9dd8a.tar.bz2
Imported Upstream version 2015.02.28
Diffstat (limited to 'devscripts')
-rw-r--r--devscripts/check-porn.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/devscripts/check-porn.py b/devscripts/check-porn.py
index 2162827..6a5bd9e 100644
--- a/devscripts/check-porn.py
+++ b/devscripts/check-porn.py
@@ -45,12 +45,12 @@ for test in get_testcases():
RESULT = ('.' + domain + '\n' in LIST or '\n' + domain + '\n' in LIST)
- if RESULT and ('info_dict' not in test or 'age_limit' not in test['info_dict']
- or test['info_dict']['age_limit'] != 18):
+ if RESULT and ('info_dict' not in test or 'age_limit' not in test['info_dict'] or
+ test['info_dict']['age_limit'] != 18):
print('\nPotential missing age_limit check: {0}'.format(test['name']))
- elif not RESULT and ('info_dict' in test and 'age_limit' in test['info_dict']
- and test['info_dict']['age_limit'] == 18):
+ elif not RESULT and ('info_dict' in test and 'age_limit' in test['info_dict'] and
+ test['info_dict']['age_limit'] == 18):
print('\nPotential false negative: {0}'.format(test['name']))
else: