Skip to content

Commit

Permalink
clean up imports, do not create locale instance
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzj29 committed Mar 24, 2022
1 parent 63c9a47 commit 3511513
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion beancount_import/source/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def __init__(self,
self.pickler = AmazonPickler(pickle_dir)

self.earliest_date = earliest_date
self.locale = LOCALES[locale]()
self.locale = LOCALES[locale]

self.invoice_filenames = [] # type: List[Tuple[str, str]]
for filename in os.listdir(self.directory):
Expand Down
5 changes: 2 additions & 3 deletions beancount_import/source/amazon_invoice.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
"""Parses an Amazon.com/.de regular or digital order details HTML file."""

from typing import NamedTuple, Optional, List, Union, Iterable, Dict, Sequence, cast, Any
import dataclasses
from typing import NamedTuple, Optional, List, Union, Iterable, Dict, Sequence, cast
from abc import ABC, abstractmethod
import collections
import re
import os
import functools
import datetime
import logging
from abc import ABC, abstractmethod

import bs4
import dateutil.parser
Expand Down

0 comments on commit 3511513

Please sign in to comment.