betterproto2-compiler 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/PKG-INFO +1 -1
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/pyproject.toml +1 -1
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/plugin/models.py +6 -1
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/LICENSE.md +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/README.md +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/__init__.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/casing.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/compile/__init__.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/compile/importing.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/compile/naming.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/known_types/__init__.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/known_types/any.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/known_types/duration.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/known_types/timestamp.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/lib/__init__.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/lib/google/__init__.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/lib/google/protobuf/__init__.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/lib/google/protobuf/compiler/__init__.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/lib/message_pool.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/plugin/__init__.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/plugin/__main__.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/plugin/compiler.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/plugin/main.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/plugin/module_validation.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/plugin/parser.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/plugin/plugin.bat +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/py.typed +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/settings.py +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/templates/header.py.j2 +0 -0
- {betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/templates/template.py.j2 +0 -0
@@ -129,7 +129,12 @@ def get_comment(
|
|
129
129
|
# We don't add this space to the generated file.
|
130
130
|
lines = [line[1:] if line and line[0] == " " else line for line in lines]
|
131
131
|
|
132
|
-
|
132
|
+
comment = "\n".join(lines)
|
133
|
+
|
134
|
+
# Escape backslashes and triple quotes
|
135
|
+
comment = comment.replace("\\", "\\\\").replace('"""', '\\"\\"\\"')
|
136
|
+
|
137
|
+
return comment
|
133
138
|
|
134
139
|
return ""
|
135
140
|
|
File without changes
|
File without changes
|
{betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/__init__.py
RENAMED
File without changes
|
{betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/casing.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/plugin/main.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/py.typed
RENAMED
File without changes
|
{betterproto2_compiler-0.3.1 → betterproto2_compiler-0.3.2}/src/betterproto2_compiler/settings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|