nsarchive 1.2.1__tar.gz → 1.2.3__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: nsarchive
3
- Version: 1.2.1
3
+ Version: 1.2.3
4
4
  Summary:
5
5
  License: GPL-3.0
6
6
  Author: happex
@@ -126,7 +126,7 @@ class EntityInstance:
126
126
  for member in entity.members:
127
127
  _member = {
128
128
  'id': NSID(member.id),
129
- 'permissions': member.permissions.__dict__.copy()
129
+ 'permissions': member.group_permissions.__dict__.copy()
130
130
  }
131
131
 
132
132
  _data['members'] += [_member]
@@ -18,7 +18,7 @@ class NSID(str):
18
18
  elif type(value) in (str, NSID):
19
19
  value = hex(int(value, 16))
20
20
  else:
21
- return TypeError(f"<{value}> is not NSID serializable")
21
+ raise TypeError(f"<{value}> is not NSID serializable")
22
22
 
23
23
  if value.startswith("0x"):
24
24
  value = value[2:]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "nsarchive"
3
- version = "1.2.1"
3
+ version = "1.2.3"
4
4
  description = ""
5
5
  authors = ["happex <110610727+okayhappex@users.noreply.github.com>"]
6
6
  license = "GPL-3.0"
File without changes
File without changes