Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124658
D2555.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
952 B
Subscribers
None
D2555.diff
View Options
diff --git a/swh/loader/svn/ra.py b/swh/loader/svn/ra.py
--- a/swh/loader/svn/ra.py
+++ b/swh/loader/svn/ra.py
@@ -29,13 +29,16 @@
def _normalize_line_endings(lines, eol_style='native'):
- """Normalize line endings to unix (\n), windows (\r\n) or mac (\r).
+ r"""Normalize line endings to unix (\\n), windows (\\r\\n) or mac (\\r).
+
Args:
lines (bytes): The lines to normalize
+
line_ending (str): The line ending format as defined for
svn:eol-style property. Acceptable values are 'native',
'CRLF', 'LF' and 'CR'
- Returns
+
+ Returns:
bytes: lines with endings normalized
"""
lines = lines.replace(_eol_style['CRLF'], _eol_style['LF'])\
@@ -92,7 +95,7 @@
Args:
fullpath (str/bytes): Full path to the potential symlink to check
- Return:
+ Returns:
boolean value to determine if it's indeed a symlink (as per
svn) or not.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 21 2024, 4:29 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3219668
Attached To
D2555: Fix sphinx warnings
Event Timeline
Log In to Comment