dfpyre 0.8.19__py3-none-any.whl → 0.8.20__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.

Potentially problematic release.


This version of dfpyre might be problematic. Click here for more details.

dfpyre/scriptgen.py CHANGED
@@ -80,7 +80,7 @@ def argument_item_to_string(flags: GeneratorFlags, arg_item: object) -> str:
80
80
 
81
81
  if isinstance(arg_item, Text):
82
82
  literal = str_literal(arg_item.value)
83
- return f"{class_name}('{literal}'{slot_argument})"
83
+ return f"{class_name}({literal}{slot_argument})"
84
84
 
85
85
  if isinstance(arg_item, Number):
86
86
  if not is_number(str(arg_item.value)): # Probably a math expression
@@ -187,7 +187,7 @@ def generate_script(template, flags: GeneratorFlags) -> str:
187
187
 
188
188
  # Get codeblock function and start its arguments with the action
189
189
  function_name = TEMPLATE_FUNCTION_LOOKUP[codeblock.type]
190
- function_args = [f"'{codeblock.action_name}'"]
190
+ function_args = [str_literal(codeblock.action_name)]
191
191
 
192
192
  # Add variable assignment if necessary
193
193
  var_assignment_snippet = ''
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dfpyre
3
- Version: 0.8.19
3
+ Version: 0.8.20
4
4
  Summary: A package for creating and modifying code templates for the DiamondFire Minecraft server.
5
5
  Home-page: https://github.com/Amp63/pyre
6
6
  License: MIT
@@ -4,10 +4,10 @@ dfpyre/actiondump.py,sha256=5Q4RmT_DyVbPvkF0AFzMAqtqR1bmqu91yed_pRK5MkU,3571
4
4
  dfpyre/data/actiondump_min.json,sha256=ZF_Aa6uB1khzsINAEAljCOIMmfh_5ihmBygZSP_bHrs,2482346
5
5
  dfpyre/items.py,sha256=zdT_b7D38ofFVEYtjHb6x6IU0XMJJCJPuQUXW5MNsm0,17681
6
6
  dfpyre/pyre.py,sha256=T-rnvCgIucWKFdhcRuBM_5NTaszuZ4M2VIcu44jrLIY,26047
7
- dfpyre/scriptgen.py,sha256=feFya797O8t0gExKzi0u1aKOjrzBFUaP7BzAlEfR5rM,9738
7
+ dfpyre/scriptgen.py,sha256=NABQKGgnoWZCkV42Av_4Is8CdVCWUt6Wk9-r-F44Als,9742
8
8
  dfpyre/style.py,sha256=mLW1CFvvi8_9fk8JaH10I5S4WI0YBdQIXHtI3G_4sR8,980
9
9
  dfpyre/util.py,sha256=_ndjGyn_pvMfEBmUjt0ARjYvGZfZz7Av-KSYPmvx0N0,934
10
- dfpyre-0.8.19.dist-info/LICENSE,sha256=_vuDskB0ja2c-Fgm7Gt8Q8cO9NsLNpZAVyvmZwX7E6o,1060
11
- dfpyre-0.8.19.dist-info/METADATA,sha256=8UeKPPsCJRIPedCILjzOoS6UY3mdeg8gg6L9iTeFuyI,11949
12
- dfpyre-0.8.19.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
- dfpyre-0.8.19.dist-info/RECORD,,
10
+ dfpyre-0.8.20.dist-info/LICENSE,sha256=_vuDskB0ja2c-Fgm7Gt8Q8cO9NsLNpZAVyvmZwX7E6o,1060
11
+ dfpyre-0.8.20.dist-info/METADATA,sha256=M0RBjcjMhSPG1nVP5ZGuirKmFMpzrBDpBwRgfQRqr08,11949
12
+ dfpyre-0.8.20.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
+ dfpyre-0.8.20.dist-info/RECORD,,