Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/reports/bin/parseNewReports.py

Issue 29345120: Noissue - Got rid of non-default script encodings (Closed)
Patch Set: Created May 28, 2016, 11:32 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sitescripts/reports/bin/mailDigests.py ('k') | sitescripts/reports/bin/processReports.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/reports/bin/parseNewReports.py
===================================================================
--- a/sitescripts/reports/bin/parseNewReports.py
+++ b/sitescripts/reports/bin/parseNewReports.py
@@ -1,5 +1,3 @@
-# coding: utf-8
-
# This file is part of the Adblock Plus web scripts,
# Copyright (C) 2006-2016 Eyeo GmbH
#
@@ -277,12 +275,12 @@
itemPath = keyPath + '.item'
limit = lengthRestrictions.get(itemPath, lengthRestrictions['default_string'])
if len(data[key][i]) > limit:
- data[key][i] = data[key][i][0:limit] + u'…'
+ data[key][i] = data[key][i][0:limit] + u'\u2026'
reportData['warnings'][itemPath] = 'Field %s exceeded length limit and was truncated' % itemPath
elif isinstance(data[key], basestring):
limit = lengthRestrictions.get(keyPath, lengthRestrictions['default_string'])
if len(data[key]) > limit:
- data[key] = data[key][0:limit] + u'…'
+ data[key] = data[key][0:limit] + u'\u2026'
reportData['warnings'][keyPath] = 'Field %s exceeded length limit and was truncated' % keyPath
if __name__ == '__main__':
« no previous file with comments | « sitescripts/reports/bin/mailDigests.py ('k') | sitescripts/reports/bin/processReports.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld