Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Starter Code for the Lesson 11: Text Learning Mini-Project #7

@reemaljaber

Description

@reemaljaber

Hello i'm studying the mini project using ur code and its great so far.
i have this issue I couldn't fix

..\utils\maildir/bailey-s/deleted_items/101.

AttributeError Traceback (most recent call last)
in
22
23 # use parse_out_text to extract the text from the opened email
---> 24 parse_out_text(email)
25 # use str.replace() to remove any instances of the words
26 # ["sara", "shackleton", "chris", "germani"]

~\OneDrive\Desktop\ud120-projects-py3-jupyter-master\ud120-projects-py3-jupyter-master\utils\parse_out_email_text.py in parse_out_text(f)
23 if len(content) > 1:
24 # remove punctuation
---> 25 text_string = content[1].translate(str.maketrans("", ""),str.punctuation)
26
27 # project part 2: comment out the line below

AttributeError: module 'string' has no attribute 'maketrans'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions