diff options
author | Binbin <binloveplay1314@qq.com> | 2021-06-13 02:47:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-13 02:47:44 (GMT) |
commit | 17b16e13bb444001534ed6fccb459084596c8bcf (patch) | |
tree | 569101fcca308843dd1ff731dbd74682d7700f6f /Lib/symtable.py | |
parent | 736ed6f7a9f465ba728198e8bca81e5fbe71bc37 (diff) | |
download | cpython-17b16e13bb444001534ed6fccb459084596c8bcf.zip cpython-17b16e13bb444001534ed6fccb459084596c8bcf.tar.gz cpython-17b16e13bb444001534ed6fccb459084596c8bcf.tar.bz2 |
Fix typos in multiple files (GH-26689)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/symtable.py')
-rw-r--r-- | Lib/symtable.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py index 98db1e2..922854b 100644 --- a/Lib/symtable.py +++ b/Lib/symtable.py @@ -62,7 +62,7 @@ class SymbolTable: def get_type(self): """Return the type of the symbol table. - The values retuned are 'class', 'module' and + The values returned are 'class', 'module' and 'function'. """ if self._table.type == _symtable.TYPE_MODULE: @@ -245,7 +245,7 @@ class Symbol: return bool(self.__flags & DEF_PARAM) def is_global(self): - """Return *True* if the sysmbol is global. + """Return *True* if the symbol is global. """ return bool(self.__scope in (GLOBAL_IMPLICIT, GLOBAL_EXPLICIT) or (self.__module_scope and self.__flags & DEF_BOUND)) |