[Python-checkins] peps: Formatting fixes to new PEP8 text

chris.angelico python-checkins at python.org
Sat Jan 3 03:27:39 CET 2015


https://hg.python.org/peps/rev/80e4f23d4a96
changeset:   5655:80e4f23d4a96
user:        Chris Angelico <rosuav at gmail.com>
date:        Sat Jan 03 13:27:29 2015 +1100
summary:
  Formatting fixes to new PEP8 text

files:
  pep-0008.txt |  18 +++++++++++-------
  1 files changed, 11 insertions(+), 7 deletions(-)


diff --git a/pep-0008.txt b/pep-0008.txt
--- a/pep-0008.txt
+++ b/pep-0008.txt
@@ -518,14 +518,18 @@
   Additionally, use a single space after the ``:``, as well as a single space
   on either side of the ``->`` sign representing an annotated return value.
 
-  Yes:  def munge(input: AnyStr):
-  Yes:  def munge(sep: AnyStr = None):
-  Yes:  def munge() -> AnyStr:
-  Yes:  def munge(input: AnyStr, sep: AnyStr = None, limit=1000):
+  Yes::
 
-  No:   def munge(input: AnyStr=None):
-  No:   def munge(input:AnyStr):
-  No:   def munge(input: AnyStr)->PosInt:
+      def munge(input: AnyStr):
+      def munge(sep: AnyStr = None):
+      def munge() -> AnyStr:
+      def munge(input: AnyStr, sep: AnyStr = None, limit=1000):
+
+  No::
+
+      def munge(input: AnyStr=None):
+      def munge(input:AnyStr):
+      def munge(input: AnyStr)->PosInt:
 
 - Compound statements (multiple statements on the same line) are
   generally discouraged.

-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list