scratchattach 2.1.11__py3-none-any.whl → 2.1.12__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.
@@ -142,7 +142,7 @@ class WebSocketEventStream(EventStream):
142
142
  i = 0
143
143
  with self.reading:
144
144
  try:
145
- self.receive_new(True)
145
+ self.receive_new(amount != -1)
146
146
  while (self.packets_left and amount == -1) or (amount != -1 and i < amount):
147
147
  if not self.packets_left and amount != -1:
148
148
  self.receive_new()
@@ -150,7 +150,7 @@ class WebSocketEventStream(EventStream):
150
150
  i += 1
151
151
  except Exception:
152
152
  self.source_cloud.reconnect()
153
- self.receive_new(True)
153
+ self.receive_new(amount != -1)
154
154
  while (self.packets_left and amount == -1) or (amount != -1 and i < amount):
155
155
  if not self.packets_left and amount != -1:
156
156
  self.receive_new()
@@ -14,9 +14,9 @@ class Activity(BaseSiteComponent):
14
14
  """
15
15
 
16
16
  def __repr__(self):
17
- return repr(self.raw)
17
+ return f"Activity({repr(self.raw)})"
18
18
 
19
- def str(self):
19
+ def __str__(self):
20
20
  return str(self.raw)
21
21
 
22
22
  def __init__(self, **entries):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scratchattach
3
- Version: 2.1.11
3
+ Version: 2.1.12
4
4
  Summary: A Scratch API Wrapper
5
5
  Home-page: https://scratchattach.tim1de.net
6
6
  Author: TimMcCool
@@ -1,6 +1,6 @@
1
1
  scratchattach/__init__.py,sha256=2iiV0SghFUyJJrJYt668cSoDrxSjLCWNtzMdhttnMdA,1532
2
2
  scratchattach/cloud/__init__.py,sha256=MN7s4grQcciqUO7TiFjTbU2sC69m6XXlwOHNRbN3FKo,41
3
- scratchattach/cloud/_base.py,sha256=gMaZkiNL0MW7TjSmn_2d8en4GFYF5Bxyy-pPENKrBGc,17753
3
+ scratchattach/cloud/_base.py,sha256=3Kc1VKX6ogDqyItLUbHPom9DeGq7EUjpS0bjr-JuTHQ,17769
4
4
  scratchattach/cloud/cloud.py,sha256=TcIcY0tMe1jRdzxJrz6AIL0gW9xeMc9x4vNUCvBbRWY,7735
5
5
  scratchattach/editor/__init__.py,sha256=gfTQrtyQ-oZJBanp-5eNae72cwm4WoKHzNtZ4rn1dqg,727
6
6
  scratchattach/editor/asset.py,sha256=jNXJA09hU5b4ZTLegu7c0azlwHo5k_XZJfDN24uDux8,6078
@@ -39,7 +39,7 @@ scratchattach/other/other_apis.py,sha256=7EyB3uB-1AYAH7Nb6eZ3VmACGdXvEQ39NJ1iahU
39
39
  scratchattach/other/project_json_capabilities.py,sha256=qSlJIJOgAxhSchD3fOIhK57rCe0_GrHadXBs5UXKuFU,22622
40
40
  scratchattach/site/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
41
  scratchattach/site/_base.py,sha256=S-ynYKe7LslZxaZzE0hZsga0eLB2XlQo5erAfKct8yc,2193
42
- scratchattach/site/activity.py,sha256=a019lhoUwL9mdZI1Sz9mMg9EsDt2Lp5ziJSSDQ8-BWM,14319
42
+ scratchattach/site/activity.py,sha256=fczH9_v5CoFuMTobm7BcbnMy2scf9c2ZjzfIqBEOBes,14338
43
43
  scratchattach/site/backpack_asset.py,sha256=V_ypvTi-hqf0LF8zks2uHIicraBssc1_eEHVqHMzikc,3286
44
44
  scratchattach/site/browser_cookies.py,sha256=aaYLawtifngZ0pgaXHjBiWvYHUfflS8ZcXRjTTrge3A,1566
45
45
  scratchattach/site/classroom.py,sha256=WKMOcmYzKZx_EZNR4qipHOB8nxaggFe84lxqnrWd24E,16463
@@ -56,8 +56,8 @@ scratchattach/utils/encoder.py,sha256=rqJfQ5gmjf7s8aTiGhR0W1ejYN5tHbAgJlxv7JhGqZ
56
56
  scratchattach/utils/enums.py,sha256=93ylCrxWycunahISSIjBqTIJ2r1Hb2b9RMvvzmUiQ-c,8294
57
57
  scratchattach/utils/exceptions.py,sha256=hrnPuXRRwR-kTHnrQVyfAD6PDOg1hZQd-jaXuUSNKSQ,6274
58
58
  scratchattach/utils/requests.py,sha256=x_EfcbLdBpQQuH9g4MMSaM8RN3tUm9OtzPEJQQiwilY,2709
59
- scratchattach-2.1.11.dist-info/licenses/LICENSE,sha256=1PRKLhZU4wYt5M-C9f7q0W3go3u_ojnZMNOdR3g3J-E,1080
60
- scratchattach-2.1.11.dist-info/METADATA,sha256=mC-Kltdsi4hFeQOpg44My3rIvG831mrvMJJdQGMLngY,5463
61
- scratchattach-2.1.11.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
62
- scratchattach-2.1.11.dist-info/top_level.txt,sha256=gIwCwW39ohXn0JlnvSzAjV7VtL3qPlRnHiRqBbxsEUE,14
63
- scratchattach-2.1.11.dist-info/RECORD,,
59
+ scratchattach-2.1.12.dist-info/licenses/LICENSE,sha256=1PRKLhZU4wYt5M-C9f7q0W3go3u_ojnZMNOdR3g3J-E,1080
60
+ scratchattach-2.1.12.dist-info/METADATA,sha256=lvyNTW5sZGd0G6koIl1te2esiF4Y8oadiXZ_K9tcBQM,5463
61
+ scratchattach-2.1.12.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
62
+ scratchattach-2.1.12.dist-info/top_level.txt,sha256=gIwCwW39ohXn0JlnvSzAjV7VtL3qPlRnHiRqBbxsEUE,14
63
+ scratchattach-2.1.12.dist-info/RECORD,,