File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -129,16 +129,18 @@ def serialize(message: pylint.message.Message) -> Result:
129129
130130
131131def path_to_uri (path : str ) -> str :
132- """Converts a relative FS path to a relative URI. Does not check the
132+ """Converts a relative FS path to a relative URI.
133+
134+ Does not check the
133135 validity of the path.
134136
135137 An alternative would be to use `Path.as_uri` (on concrete path) on both the
136138 artifact path and a reference path, then create a relative URI from this.
137139 """
138140 if os .path .altsep :
139- path = path .replace (os .path .altsep , '/' )
140- if os .path .sep != '/' :
141- path = path .replace (os .path .sep , '/' )
141+ path = path .replace (os .path .altsep , "/" )
142+ if os .path .sep != "/" :
143+ path = path .replace (os .path .sep , "/" )
142144 return quote (path )
143145
144146
You can’t perform that action at this time.
0 commit comments