Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9345861
D1649.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D1649.diff
View Options
diff --git a/swh/model/identifiers.py b/swh/model/identifiers.py
--- a/swh/model/identifiers.py
+++ b/swh/model/identifiers.py
@@ -645,7 +645,8 @@
pointed object
Raises:
- swh.model.exceptions.ValidationError: In case of invalid object type or id
+ swh.model.exceptions.ValidationError: In case of invalid object type
+ or id
Once created, it contains the following attributes:
@@ -659,9 +660,13 @@
To get the raw persistent identifier string from an instance of
this named tuple, use the :func:`str` function::
- pid = PersistentId(object_type='content', object_id='8ff44f081d43176474b267de5451f2c2e88089d0')
- pid_str = str(pid) # 'swh:1:cnt:8ff44f081d43176474b267de5451f2c2e88089d0'
- """ # noqa
+ pid = PersistentId(
+ object_type='content',
+ object_id='8ff44f081d43176474b267de5451f2c2e88089d0'
+ )
+ pid_str = str(pid)
+ # 'swh:1:cnt:8ff44f081d43176474b267de5451f2c2e88089d0'
+ """
__slots__ = ()
def __new__(cls, namespace='swh', scheme_version=1,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 3:34 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217764
Attached To
D1649: Reformat docstring for max line length
Event Timeline
Log In to Comment