From 7f8919375d03101980b73652049d80435200fe56 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Fri, 4 Nov 2011 21:13:33 +0000 Subject: [PATCH] Update JavaScript style guide to 2.28: - Fix typo. Update Python style guide to 2.29: - Fix indirect setter. --- javascriptguide.xml | 6 +++--- pyguide.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/javascriptguide.xml b/javascriptguide.xml index 0816973..1df49a0 100644 --- a/javascriptguide.xml +++ b/javascriptguide.xml @@ -3,7 +3,7 @@

- Revision 2.27 + Revision 2.28

@@ -345,7 +345,7 @@

eval() makes for confusing semantics and is dangerous to use if the string being eval()'d contains user input. There's usually a better, more clear, safer way to write your code, so - its used is generally not permitted. However eval makes + its use is generally not permitted. However eval makes deserialization considerably easier than the non-eval alternatives, so its use is acceptable for this task (for example, to evaluate RPC responses).

@@ -3194,7 +3194,7 @@

- Revision 2.27 + Revision 2.28

diff --git a/pyguide.html b/pyguide.html index d1d75c6..af00822 100644 --- a/pyguide.html +++ b/pyguide.html @@ -136,7 +136,7 @@

Google Python Style Guide

- Revision 2.28 + Revision 2.29

@@ -842,7 +842,7 @@ from sound.effects import echo def ___set_area(self, area): """Indirect setter for 'area' property.""" - self._SetArea(area) + self.__set_area(area) area = property(___get_area, ___set_area, doc="""Gets or sets the area of the square.""") @@ -2112,7 +2112,7 @@ Don't do this.

-Revision 2.28 +Revision 2.29