mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
docs: Always follow Unix style newline
The 'open()' follows default behavior of OS (CRLF in case of Windows). So it results in a bunch of git diff on Windows.
This commit is contained in:
parent
904d552176
commit
bb34bd4575
1 changed files with 5 additions and 5 deletions
|
@ -79,7 +79,7 @@ if __name__ == "__main__":
|
||||||
subenv = os.environ.copy()
|
subenv = os.environ.copy()
|
||||||
cache = {}
|
cache = {}
|
||||||
try:
|
try:
|
||||||
with open(cache_filename) as f:
|
with open(cache_filename, newline='\n') as f:
|
||||||
cache = json.load(f)
|
cache = json.load(f)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
@ -91,7 +91,7 @@ if __name__ == "__main__":
|
||||||
gst_plugins_paths.append(os.path.dirname(plugin_path))
|
gst_plugins_paths.append(os.path.dirname(plugin_path))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(BUILD_ROOT, 'GstPluginsPath.json')) as f:
|
with open(os.path.join(BUILD_ROOT, 'GstPluginsPath.json'), newline='\n') as f:
|
||||||
plugin_paths = os.pathsep.join(json.load(f))
|
plugin_paths = os.pathsep.join(json.load(f))
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
plugin_paths = ""
|
plugin_paths = ""
|
||||||
|
@ -118,9 +118,9 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
modified = dict_recursive_update(cache, plugins)
|
modified = dict_recursive_update(cache, plugins)
|
||||||
|
|
||||||
with open(output_filename, 'w') as f:
|
with open(output_filename, 'w', newline='\n') as f:
|
||||||
json.dump(cache, f, indent=4, sort_keys=True)
|
json.dump(cache, f, indent=4, sort_keys=True)
|
||||||
|
|
||||||
if modified:
|
if modified:
|
||||||
with open(cache_filename, 'w') as f:
|
with open(cache_filename, 'w', newline='\n') as f:
|
||||||
json.dump(cache, f, indent=4, sort_keys=True)
|
json.dump(cache, f, indent=4, sort_keys=True)
|
Loading…
Reference in a new issue