diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2018-01-27 05:06:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-27 05:06:21 (GMT) |
commit | a49ac9902903a798fab4970ccf563c531199c3f8 (patch) | |
tree | 56390f8d6849446b23d3d2a152c6197fc724ae70 /Lib/collections | |
parent | 85527cf50a9a4eecaca4022f7c6cb9e0bae1fa5f (diff) | |
download | cpython-a49ac9902903a798fab4970ccf563c531199c3f8.zip cpython-a49ac9902903a798fab4970ccf563c531199c3f8.tar.gz cpython-a49ac9902903a798fab4970ccf563c531199c3f8.tar.bz2 |
bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342)
Diffstat (limited to 'Lib/collections')
-rw-r--r-- | Lib/collections/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 7088b88..21d91fd 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -1214,6 +1214,7 @@ class UserString(Sequence): return self.data.index(sub, start, end) def isalpha(self): return self.data.isalpha() def isalnum(self): return self.data.isalnum() + def isascii(self): return self.data.isascii() def isdecimal(self): return self.data.isdecimal() def isdigit(self): return self.data.isdigit() def isidentifier(self): return self.data.isidentifier() |