Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(836)

Unified Diff: doxypypy/doxypypy/test/sample_sections.outbare.py

Issue 1574883002: add doxypypy and py_filter so this will turn google style (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: doxypypy/doxypypy/test/sample_sections.outbare.py
diff --git a/doxypypy/doxypypy/test/sample_sections.outbare.py b/doxypypy/doxypypy/test/sample_sections.outbare.py
new file mode 100644
index 0000000000000000000000000000000000000000..5136a489e581217b0ff39b8ed39097abe2998d6b
--- /dev/null
+++ b/doxypypy/doxypypy/test/sample_sections.outbare.py
@@ -0,0 +1,40 @@
+#!/usr/bin/env python
+# encoding: utf-8
+##
+#Sample documentation the arbitrary section handling.
+#
+#Related to issue #7 [1].
+#
+#[1]: https://github.com/Feneric/doxypypy/issues/7
+#
+
+
+##A simple function of two arguments.
+#
+# This function takes two arguments, but does absolutely nothing with them.
+# However, it sends out a friendly greeting to the world.
+#
+# Args:
+# arg1: The first argument
+# arg2: The second argument
+#
+# Returns:
+# A string stating "Hello World"
+#
+# Examples:
+# >>> function(1, 2)
+# "Hello World"
+# >>> function('a', 'b')
+# "Hello World"
+#
+# Intent:
+# The intent is to demonstrate sections like this one within docstrings.
+# How they behave with multiple lines.
+#
+# And how they behave with multiple paragraphs.
+# That contain multiple lines.
+#
+# Paragraphs stading by themselves without indention, should be left alone.
+#
+def function(arg1, arg2):
+ return "Hello World"

Powered by Google App Engine
This is Rietveld 408576698