betterproto2-compiler 0.3.1__py3-none-any.whl → 0.3.2__py3-none-any.whl

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.
@@ -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
- return "\n".join(lines)
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: betterproto2_compiler
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Compiler for betterproto2
5
5
  License: MIT
6
6
  Keywords: protobuf,gRPC,compiler
@@ -16,7 +16,7 @@ betterproto2_compiler/plugin/__init__.py,sha256=L3pW0b4CvkM5x53x_sYt1kYiSFPO0_va
16
16
  betterproto2_compiler/plugin/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
17
17
  betterproto2_compiler/plugin/compiler.py,sha256=3sPbCtdzjAGftVvoGe5dvxE8uTzJ78hABA-_f-1rEUo,2471
18
18
  betterproto2_compiler/plugin/main.py,sha256=gI2fSWc9U-fn6MOlkLg7iResr2YsXbdOge6SzNWxBAo,1302
19
- betterproto2_compiler/plugin/models.py,sha256=gF3pEBsrzleVRTr1vSYg17k5Ezbe3OSitV0oDsycVWA,20922
19
+ betterproto2_compiler/plugin/models.py,sha256=MIzmnekCuZrzixGthAw9B6p3hXAtk6YYjDLUVIsIs4o,21085
20
20
  betterproto2_compiler/plugin/module_validation.py,sha256=JnP8dSN83eJJVDP_UPJsHzq7E7Md3lah0PnKXDbFW5Q,4808
21
21
  betterproto2_compiler/plugin/parser.py,sha256=MIA5-pAIJsng59wk3KYEKBARNCsQEQeetnVZk_MhL0I,9349
22
22
  betterproto2_compiler/plugin/plugin.bat,sha256=lfLT1WguAXqyerLLsRL6BfHA0RqUE6QG79v-1BYVSpI,48
@@ -24,8 +24,8 @@ betterproto2_compiler/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
24
24
  betterproto2_compiler/settings.py,sha256=FQwco5j9ViBXtDYoFqog7SlXhX2YcbgEnFP77znYiwc,94
25
25
  betterproto2_compiler/templates/header.py.j2,sha256=HrISX0IKmUsVpIlGIT6XlD9e3LgWWPN7jYRpws5_-CY,1609
26
26
  betterproto2_compiler/templates/template.py.j2,sha256=Wlif_PRN49Hmeh0e8RyYFvrNTcusugysP_sAgBaDA4A,8420
27
- betterproto2_compiler-0.3.1.dist-info/LICENSE.md,sha256=Pgl2pReU-2yw2miGeQ55UFlyzqAZ_EpYVyZ2nWjwRv4,1121
28
- betterproto2_compiler-0.3.1.dist-info/METADATA,sha256=QpKRNrkBszUpS7E08NgQpmEPqyY75urCm30w53ovCdU,1188
29
- betterproto2_compiler-0.3.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
30
- betterproto2_compiler-0.3.1.dist-info/entry_points.txt,sha256=re3Qg8lLljbVobeeKH2f1FVQZ114wfZkGv3zCZTD8Ok,84
31
- betterproto2_compiler-0.3.1.dist-info/RECORD,,
27
+ betterproto2_compiler-0.3.2.dist-info/LICENSE.md,sha256=Pgl2pReU-2yw2miGeQ55UFlyzqAZ_EpYVyZ2nWjwRv4,1121
28
+ betterproto2_compiler-0.3.2.dist-info/METADATA,sha256=r9_e3O4E0DMcyEEgHkDZARdc6fr3W9qU5eHfEsADovg,1188
29
+ betterproto2_compiler-0.3.2.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
30
+ betterproto2_compiler-0.3.2.dist-info/entry_points.txt,sha256=re3Qg8lLljbVobeeKH2f1FVQZ114wfZkGv3zCZTD8Ok,84
31
+ betterproto2_compiler-0.3.2.dist-info/RECORD,,