Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

go back to text file open so that jason.load does not raise TypeError #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hangouts_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def parse_input_file(self, hangouts_file_name, user_phone_number):
"""
conversations = []
self_gaia_id = None # gaia_id for the phone owner
with open(hangouts_file_name, 'rb') as data_file:
with open(hangouts_file_name, 'r') as data_file:
# Read the Hangouts JSON file and turn into objects
data = json.load(data_file, object_hook=lambda d: Namespace(**d))
# Iterate through each conversation in the list
Expand Down