summaryrefslogtreecommitdiff
path: root/Lib/collections
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-01-27 14:06:21 +0900
committerGitHub <noreply@github.com>2018-01-27 14:06:21 +0900
commita49ac9902903a798fab4970ccf563c531199c3f8 (patch)
tree56390f8d6849446b23d3d2a152c6197fc724ae70 /Lib/collections
parent85527cf50a9a4eecaca4022f7c6cb9e0bae1fa5f (diff)
downloadcpython-git-a49ac9902903a798fab4970ccf563c531199c3f8.tar.gz
bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342)
Diffstat (limited to 'Lib/collections')
-rw-r--r--Lib/collections/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index 7088b88e04..21d91fd61d 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()