Changeset - 04c804a5065c
[Not reviewed]
0 1 0
Brett Smith - 4 years ago 2020-06-09 13:04:27
brettcsmith@brettcsmith.org
books: Remove unused workdir() function.
1 file changed with 0 insertions and 11 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/books.py
Show inline comments
...
 
@@ -16,5 +16,3 @@
 

	
 
import contextlib
 
import datetime
 
import os
 

	
...
 
@@ -40,11 +38,2 @@ Year = Union[int, datetime.date]
 

	
 
@contextlib.contextmanager
 
def workdir(path: PathLike) -> Iterator[Path]:
 
    old_dir = os.getcwd()
 
    os.chdir(path)
 
    try:
 
        yield Path(old_dir)
 
    finally:
 
        os.chdir(old_dir)
 

	
 
class FiscalYear(NamedTuple):
0 comments (0 inline, 0 general)