Skip to content

Feature/ascii#2115

Closed
jjoliveira wants to merge 4 commits into
masterfrom
unknown repository
Closed

Feature/ascii#2115
jjoliveira wants to merge 4 commits into
masterfrom
unknown repository

Conversation

@jjoliveira
Copy link
Copy Markdown
Contributor

Implemented the solution purposed by @dsully for issue #1286

Copy link
Copy Markdown
Member

@ThiefMaster ThiefMaster left a comment

Choose a reason for hiding this comment

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

Also, please rebase to the upstream master. You currently have a weird merge commit in your PR.

Comment thread flask/helpers.py Outdated
a :class:`~datetime.datetime` or timestamp.
If a file was passed, this overrides its mtime.
"""
import warnings

This comment was marked as off-topic.

Comment thread flask/helpers.py Outdated
If a file was passed, this overrides its mtime.
"""
import warnings
if type(filename_or_fp) is str:

This comment was marked as off-topic.

Comment thread flask/helpers.py Outdated
"""
return td.days * 60 * 60 * 24 + td.seconds

def is_ascii(string_to_test):

This comment was marked as off-topic.

Comment thread flask/helpers.py Outdated
:returns: True if string_to_test is fully ASCII encoded, False if not
:rtype: boolean
"""
if all(ord(char) < 128 for char in string_to_test):

This comment was marked as off-topic.

@jjoliveira
Copy link
Copy Markdown
Contributor Author

@ThiefMaster so is it better to delete this branch and create a new updated one? Or do you have any better suggestion?

@ThiefMaster
Copy link
Copy Markdown
Member

No, just rebase/amend and then force-push. That will update this PR without adding even more commits.

@jjoliveira
Copy link
Copy Markdown
Contributor Author

Why did the checks failed?

@ThiefMaster
Copy link
Copy Markdown
Member

There's a syntax error. Please test code before committing/pushing it...

@jjoliveira
Copy link
Copy Markdown
Contributor Author

Sorry it was a misunderstood with my colleagues.

@davidism
Copy link
Copy Markdown
Member

davidism commented Apr 8, 2017

Closing because #2223 added support for UTF-8 filenames.

@davidism davidism closed this Apr 8, 2017
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants