preparse 2.0.0.dev2__py3-none-any.whl → 2.0.0.dev3__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.
@@ -20,7 +20,7 @@ def process(
20
20
  bundling: Tuning,
21
21
  expandsabbr: bool,
22
22
  expectsabbr: bool,
23
- expectsposix: bool,
23
+ expectsPOSIX: bool,
24
24
  optDict: dict,
25
25
  prog: str,
26
26
  reconcilesorders: bool,
@@ -35,7 +35,7 @@ def process(
35
35
  allowslong=allowslong,
36
36
  allowsshort=allowsshort,
37
37
  expectsabbr=expectsabbr,
38
- expectsposix=expectsposix,
38
+ expectsPOSIX=expectsPOSIX,
39
39
  optDict=optDict,
40
40
  prog=prog,
41
41
  warn=warn,
@@ -45,7 +45,7 @@ def process(
45
45
  allowslong=allowslong,
46
46
  bundling=bundling,
47
47
  expandsabbr=expandsabbr,
48
- expectsposix=expectsposix,
48
+ expectsPOSIX=expectsPOSIX,
49
49
  reconcilesorders=reconcilesorders,
50
50
  special=special,
51
51
  )
@@ -17,7 +17,7 @@ def digest(
17
17
  allowslong: bool,
18
18
  bundling: Tuning,
19
19
  expandsabbr: bool,
20
- expectsposix: bool,
20
+ expectsPOSIX: bool,
21
21
  reconcilesorders: bool,
22
22
  special: Tuning,
23
23
  ) -> list[Item]:
@@ -29,13 +29,13 @@ def digest(
29
29
  )
30
30
  ans = digest_special(
31
31
  ans,
32
- expectsposix=expectsposix,
32
+ expectsPOSIX=expectsPOSIX,
33
33
  reconcilesorders=reconcilesorders,
34
34
  special=special,
35
35
  )
36
36
  ans = digest_order(
37
37
  ans,
38
- expectsposix=expectsposix,
38
+ expectsPOSIX=expectsPOSIX,
39
39
  reconcilesorders=reconcilesorders,
40
40
  )
41
41
  ans = digest_bundling(
@@ -116,7 +116,7 @@ def digest_bundling_max(items: list[Item]) -> list[Item]:
116
116
  def digest_order(
117
117
  items: list[Item],
118
118
  *,
119
- expectsposix: bool,
119
+ expectsPOSIX: bool,
120
120
  reconcilesorders: bool,
121
121
  ) -> list[Item]:
122
122
  ans: list[Item]
@@ -125,7 +125,7 @@ def digest_order(
125
125
  ans = list(items)
126
126
  if not reconcilesorders:
127
127
  return ans
128
- if not expectsposix:
128
+ if not expectsPOSIX:
129
129
  ans.sort(key=digest_order_key)
130
130
  return ans
131
131
  index = len(ans)
@@ -187,7 +187,7 @@ def digest_special_max(items: list[Item]) -> list[Item]:
187
187
  def digest_special_min(
188
188
  items: list[Item],
189
189
  *,
190
- expectsposix: bool,
190
+ expectsPOSIX: bool,
191
191
  reconcilesorders: bool,
192
192
  ) -> list[Item]:
193
193
  ans: list[Item]
@@ -196,7 +196,7 @@ def digest_special_min(
196
196
  isposix: bool
197
197
  ans = list(items)
198
198
  isdel = True
199
- isposix = expectsposix and not reconcilesorders
199
+ isposix = expectsPOSIX and not reconcilesorders
200
200
  index = len(items)
201
201
  while True:
202
202
  index -= 1
@@ -65,7 +65,7 @@ def parse_generator(
65
65
  allowslong: bool,
66
66
  allowsshort: bool,
67
67
  expectsabbr: bool,
68
- expectsposix: bool,
68
+ expectsPOSIX: bool,
69
69
  optDict: dict,
70
70
  prog: str,
71
71
  warn: FunctionType,
@@ -96,7 +96,7 @@ def parse_generator(
96
96
  if item.isobvious():
97
97
  # if the item is positional
98
98
  yield item
99
- broken = expectsposix
99
+ broken = expectsPOSIX
100
100
  continue
101
101
  last = parse_option(
102
102
  item.value,
@@ -28,7 +28,7 @@ class PreParser(Copyable):
28
28
  bundling: Tuning
29
29
  expandsabbr: bool
30
30
  expectsabbr: bool
31
- expectsposix: bool
31
+ expectsPOSIX: bool
32
32
  optDict: OptDict
33
33
  prog: str
34
34
  reconcilesorders: bool
@@ -46,7 +46,7 @@ class PreParser(Copyable):
46
46
  bundling: Any = Tuning.MAINTAIN,
47
47
  expandsabbr: Any = True,
48
48
  expectsabbr: Any = True,
49
- expectsposix: Any = False,
49
+ expectsPOSIX: Any = False,
50
50
  optDict: Any = (),
51
51
  prog: Any = None,
52
52
  reconcilesorders: Any = True,
@@ -58,7 +58,7 @@ class PreParser(Copyable):
58
58
  self.bundling = bundling
59
59
  self.expandsabbr = expandsabbr
60
60
  self.expectsabbr = expectsabbr
61
- self.expectsposix = expectsposix
61
+ self.expectsPOSIX = expectsPOSIX
62
62
  self.optDict = optDict
63
63
  self.prog = prog
64
64
  self.reconcilesorders = reconcilesorders
@@ -99,7 +99,7 @@ class PreParser(Copyable):
99
99
  return bool(value)
100
100
 
101
101
  @dataprop
102
- def expectsposix(self: Self, value: Any) -> bool:
102
+ def expectsPOSIX(self: Self, value: Any) -> bool:
103
103
  if value == "infer":
104
104
  return bool(os.environ.get("POSIXLY_CORRECT"))
105
105
  else: