python-filewrap 0.2.6__tar.gz → 0.2.6.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-filewrap
3
- Version: 0.2.6
3
+ Version: 0.2.6.1
4
4
  Summary: Python file wrappers.
5
5
  Home-page: https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-filewrap
6
6
  License: MIT
@@ -72,9 +72,9 @@ CRE_NOT_UNIX_NEWLINES_sub = re_compile("\r\n|\r").sub
72
72
 
73
73
  def buffer_length(b: Buffer, /) -> int:
74
74
  if isinstance(b, Sized):
75
- return buffer_length(b)
75
+ return len(b)
76
76
  else:
77
- return buffer_length(memoryview(b))
77
+ return len(memoryview(b))
78
78
 
79
79
 
80
80
  def ensure_bytes(b: Buffer, /) -> array | bytes | bytearray | memoryview:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-filewrap"
3
- version = "0.2.6"
3
+ version = "0.2.6.1"
4
4
  description = "Python file wrappers."
5
5
  authors = ["ChenyangGao <wosiwujm@gmail.com>"]
6
6
  license = "MIT"