Skip to content

Commit

Permalink
Setting stdout to utf8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
mladshij committed Oct 7, 2022
1 parent 9bd2bf3 commit 6a4c4fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions investments/ibtax/ibtax.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
import logging
import os
import sys
from typing import Iterable, List, Optional

import pandas # type: ignore
Expand Down Expand Up @@ -270,6 +271,8 @@ def parse_reports(activity_reports_dir: str, confirmation_reports_dir: str) -> I


def main():
sys.stdout.reconfigure(encoding='utf-8')

parser = argparse.ArgumentParser()
parser.add_argument('--activity-reports-dir', type=str, required=True, help='directory with InteractiveBrokers .csv activity reports')
parser.add_argument('--confirmation-reports-dir', type=str, required=True, help='directory with InteractiveBrokers .csv confirmation reports')
Expand Down

0 comments on commit 6a4c4fb

Please sign in to comment.