Skip to content

Feature/shrink#85

Open
zamattiac wants to merge 12 commits intodevelopfrom
feature/shrink
Open

Feature/shrink#85
zamattiac wants to merge 12 commits intodevelopfrom
feature/shrink

Conversation

@zamattiac
Copy link
Collaborator

No description provided.

@zamattiac
Copy link
Collaborator Author

Hold off on shrink for now

if soup.head is not None:
soup.head.insert(0, link_tag)
# soup = soup.prettify()
file.seek(0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this trying to erase the file and write again? If so, seek(0), truncate() and then write() would make more sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants