reywechat 1.0.16__py3-none-any.whl → 1.0.18__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.
reywechat/__init__.py CHANGED
File without changes
File without changes
reywechat/rall.py CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
  from .rbase import *
13
- from .client import *
13
+ from .rclient import *
14
14
  from .rdb import *
15
15
  from .rlog import *
16
16
  from .rreceive import *
reywechat/rbase.py CHANGED
File without changes
reywechat/rclient.py CHANGED
File without changes
reywechat/rdb.py CHANGED
@@ -930,7 +930,8 @@ class WeChatDatabase(BaseWeChat):
930
930
  """
931
931
 
932
932
  # Break.
933
- if sendparam.send_id is not None: return
933
+ if sendparam.send_id is not None:
934
+ return
934
935
 
935
936
  # Generate data.
936
937
  path = sendparam.params.get('path')
reywechat/rlog.py CHANGED
File without changes
reywechat/rreceive.py CHANGED
@@ -300,7 +300,7 @@ class WeChatMessage(BaseWeChat):
300
300
 
301
301
  # Check.
302
302
  if not self.is_quote:
303
- throw(value=self.is_quote)
303
+ throw(AssertionError, self.is_quote)
304
304
 
305
305
  # Extract.
306
306
  pattern = '<title>(.+?)</title>'
@@ -606,7 +606,7 @@ class WeChatMessage(BaseWeChat):
606
606
 
607
607
  # Check.
608
608
  if not self.is_image:
609
- throw(value=self.is_image)
609
+ throw(AssertionError, self.is_image)
610
610
 
611
611
  # Extract.
612
612
  self._image_qrcodes = decode_qrcode(self.file['path'])
@@ -677,7 +677,7 @@ class WeChatMessage(BaseWeChat):
677
677
 
678
678
  # Check.
679
679
  if not self.is_app:
680
- throw(value=self.is_app)
680
+ throw(AssertionError, self.is_app)
681
681
 
682
682
  # Extract.
683
683
  bs_document = BSBeautifulSoup(
@@ -886,7 +886,8 @@ class WechatReceiver(BaseWeChat):
886
886
  data: dict = json_loads(data)
887
887
 
888
888
  # Break.
889
- if 'msgId' not in data: return
889
+ if 'msgId' not in data:
890
+ return
890
891
 
891
892
  # Extract.
892
893
  message = WeChatMessage(
reywechat/rschedule.py CHANGED
File without changes
reywechat/rsend.py CHANGED
@@ -222,7 +222,8 @@ class WeChatSender(BaseWeChat):
222
222
  """
223
223
 
224
224
  # Break.
225
- if sendparam.cache_path is None: return
225
+ if sendparam.cache_path is None:
226
+ return
226
227
 
227
228
  # Delete.
228
229
  rfile = File(sendparam.cache_path)
reywechat/rtrigger.py CHANGED
File without changes
reywechat/rwechat.py CHANGED
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reywechat
3
- Version: 1.0.16
3
+ Version: 1.0.18
4
4
  Summary: WeChat method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reywechat/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -1,16 +1,16 @@
1
1
  reywechat/__init__.py,sha256=CBcaezJsuYnBzunuzRoRwz-q_HDQq7XsGKtNxCWAQoY,488
2
- reywechat/rall.py,sha256=hdSJHCoj_nDptEmxFAnPZ7TiXpZ1vjH3IMJ8lM1jnU4,373
2
+ reywechat/rall.py,sha256=KAHdmzvrmDel_ttvZKR0tkfg21Amm3sKMvGJDkNA14U,374
3
3
  reywechat/rbase.py,sha256=0NunIUIXra2ML2N6odwMk5oENTE0r6VSBHWXUvgI-lc,1124
4
4
  reywechat/rclient.py,sha256=4F9NGhBCf7JKahqyp0P9jtOyIZySkB1G54YbKa_Vs1o,22573
5
- reywechat/rdb.py,sha256=F3WSfWyN70sjEgbQ3UG-rK1vzGtNfmUSOonEp95d8ls,37670
5
+ reywechat/rdb.py,sha256=wsaGt1Nc5MfZh_MPFMOiDJmWGd9LoUOedM3FyhR9MDs,37687
6
6
  reywechat/rlog.py,sha256=cP1182Ax46ItSMHtq4OAAKBZvXnUcN5NXfDT_eZeHNo,4748
7
- reywechat/rreceive.py,sha256=xT8ORvDCL4Gqm0eZaMu7TA98Dsk_WQA8_2YeqCgo0v4,31332
7
+ reywechat/rreceive.py,sha256=-mHxR8ruSBUcEzjLAOj0EwEm3kgpng3QZtg79CLiAQI,31379
8
8
  reywechat/rschedule.py,sha256=zrtL1zQQlaKGkibkRLe4X3XLQ-7VTwir7Y-BkcxPL4g,3730
9
- reywechat/rsend.py,sha256=_o29Bz9Q0KkJaRFstBbCnMXnXwBxNEYRkH0aqOUtr9A,17887
9
+ reywechat/rsend.py,sha256=KC7dQMtjB7K9uJksHVHe--HhGgnlTltWO-VD7_4Yke4,17904
10
10
  reywechat/rtrigger.py,sha256=5bj4_bSQn8dT2_uvFIbI0M4ngOxEvvWxi5WU6SBE4nU,4769
11
11
  reywechat/rwechat.py,sha256=dwdnjamo9h5ecLgrl-cFGEk7diwu3YZRP2zQXXynRM0,5776
12
12
  reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
13
- reywechat-1.0.16.dist-info/METADATA,sha256=llb5R4lvLprYYJfmyI2_1bsdxlZYZhUVzJWV4byQQ7k,1551
14
- reywechat-1.0.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- reywechat-1.0.16.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
16
- reywechat-1.0.16.dist-info/RECORD,,
13
+ reywechat-1.0.18.dist-info/METADATA,sha256=T8TGkYnUuc_IbqXMeTYuFs-J4P8Pv18s1F1CTD-y3qY,1551
14
+ reywechat-1.0.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ reywechat-1.0.18.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
16
+ reywechat-1.0.18.dist-info/RECORD,,