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

Unified Diff: sitescripts/subscriptions/subscriptionParser.py

Issue 29345242: Noissue - Adapt quotes for compliance with our coding style in sitescripts (Closed)
Patch Set: Created May 29, 2016, 1:26 p.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/subscriptions/combineSubscriptions.py ('k') | sitescripts/testpages/web/sitekey_frame.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/subscriptions/subscriptionParser.py
===================================================================
--- a/sitescripts/subscriptions/subscriptionParser.py
+++ b/sitescripts/subscriptions/subscriptionParser.py
@@ -39,29 +39,29 @@
return property(lambda self: self._data[propName], set_property)
- name = define_property("name")
- type = define_property("type")
- maintainer = define_property("maintainer")
- email = define_property("email")
- specialization = define_property("specialization")
- languages = define_property("languages")
- recommendation = define_property("recommendation", readonly=True)
- deprecated = define_property("deprecated", readonly=True)
- unavailable = define_property("unavailable", readonly=True)
- catchall = define_property("catchall", readonly=True)
- supplements = define_property("supplements", readonly=True)
- supplementsType = define_property("supplementsType", readonly=True)
- supplemented = define_property("supplemented", readonly=True)
- variants = define_property("variants", readonly=True)
- homepage = define_property("homepage")
- contact = define_property("contact")
- forum = define_property("forum")
- faq = define_property("faq")
- blog = define_property("blog")
- changelog = define_property("changelog")
- policy = define_property("policy")
- digest = define_property("digest")
- digestDay = define_property("digestDay")
+ name = define_property('name')
+ type = define_property('type')
+ maintainer = define_property('maintainer')
+ email = define_property('email')
+ specialization = define_property('specialization')
+ languages = define_property('languages')
+ recommendation = define_property('recommendation', readonly=True)
+ deprecated = define_property('deprecated', readonly=True)
+ unavailable = define_property('unavailable', readonly=True)
+ catchall = define_property('catchall', readonly=True)
+ supplements = define_property('supplements', readonly=True)
+ supplementsType = define_property('supplementsType', readonly=True)
+ supplemented = define_property('supplemented', readonly=True)
+ variants = define_property('variants', readonly=True)
+ homepage = define_property('homepage')
+ contact = define_property('contact')
+ forum = define_property('forum')
+ faq = define_property('faq')
+ blog = define_property('blog')
+ changelog = define_property('changelog')
+ policy = define_property('policy')
+ digest = define_property('digest')
+ digestDay = define_property('digestDay')
def __init__(self, path, data):
self._data = {
@@ -184,7 +184,7 @@
if 'languageSpecialization' in self._data:
if self.specialization != None:
- self.specialization += ", " + self._data['languageSpecialization']
+ self.specialization += ', ' + self._data['languageSpecialization']
else:
self.specialization = self._data['languageSpecialization']
del self._data['languageSpecialization']
@@ -195,7 +195,7 @@
if self._data[key] != None:
found = True
if not found:
- str = ", ".join(group)
+ str = ', '.join(group)
warn('None of the attributes %s present in %s' % (str, path))
if len(self.variants) == 0:
« no previous file with comments | « sitescripts/subscriptions/combineSubscriptions.py ('k') | sitescripts/testpages/web/sitekey_frame.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld