Skip to content

Commit 6c34b73

Browse files
committed
Moved license info for utils into correct file.
1 parent 59ba41a commit 6c34b73

File tree

2 files changed

+12
-25
lines changed

2 files changed

+12
-25
lines changed

domdf_python_tools/paths.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,6 @@
77
#
88
# Copyright © 2018-2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
99
#
10-
# check_dependencies based on https://stackoverflow.com/a/29044693/3092681
11-
# Copyright © 2015 TehTechGuy
12-
# Licensed under CC-BY-SA
13-
#
14-
# as_text from https://stackoverflow.com/a/40935194
15-
# Copyright © 2016 User3759685
16-
# Available under the MIT License
17-
#
18-
# chunks from https://stackoverflow.com/a/312464/3092681
19-
# Copytight © 2008 Ned Batchelder
20-
# Licensed under CC-BY-SA
21-
#
2210
# Parts of the docstrings and the PathPlus class based on the Python 3.8.2 Documentation
2311
# Licensed under the Python Software Foundation License Version 2.
2412
# Copyright © 2001-2020 Python Software Foundation. All rights reserved.
@@ -57,10 +45,6 @@ def append(var: str, filename: PathLike, **kwargs) -> int:
5745
"""
5846
Append ``var`` to the file ``filename`` in the current directory.
5947
60-
.. warning::
61-
62-
This is currently untested
63-
6448
.. TODO:: make this the file in the given directory, by default the current directory
6549
6650
:param var: The value to append to the file
@@ -120,10 +104,6 @@ def delete(filename: PathLike, **kwargs):
120104
"""
121105
Delete the file in the current directory.
122106
123-
.. warning::
124-
125-
This is currently untested
126-
127107
.. TODO:: make this the file in the given directory, by default the current directory
128108
129109
:param filename: The file to delete
@@ -183,10 +163,6 @@ def read(filename: PathLike, **kwargs) -> str:
183163
"""
184164
Read a file in the current directory (in text mode).
185165
186-
.. warning::
187-
188-
This is currently untested
189-
190166
.. TODO:: make this the file in the given directory, by default the current directory
191167
192168
:param filename: The file to read from

domdf_python_tools/utils.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22
# cython: language_level=3
3-
# -*- coding: utf-8 -*-
43
#
54
# utils.py
65
"""
@@ -9,6 +8,18 @@
98
#
109
# Copyright © 2018-2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
1110
#
11+
# check_dependencies based on https://stackoverflow.com/a/29044693/3092681
12+
# Copyright © 2015 TehTechGuy
13+
# Licensed under CC-BY-SA
14+
#
15+
# as_text from https://stackoverflow.com/a/40935194
16+
# Copyright © 2016 User3759685
17+
# Available under the MIT License
18+
#
19+
# chunks from https://stackoverflow.com/a/312464/3092681
20+
# Copytight © 2008 Ned Batchelder
21+
# Licensed under CC-BY-SA
22+
#
1223
# This program is free software; you can redistribute it and/or modify
1324
# it under the terms of the GNU Lesser General Public License as published by
1425
# the Free Software Foundation; either version 3 of the License, or

0 commit comments

Comments
 (0)