Skip to content

Commit e413b78

Browse files
committed
Revert "Fix test failure on Python 3.6 (fixes andialbrecht#286)."
This reverts commit a03e7fd. This change isn't needed anymore. The actual problem was solved in cpython: https://hg.python.org/cpython/rev/1a2b8398f045/
1 parent 710425e commit e413b78

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

CHANGELOG

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Bug Fixes
1010

1111
* Fix parsing of incomplete AS (issue284, by vmuriart).
1212
* Fix parsing of Oracle names containing dollars (issue291).
13-
* Fix Python 3.6 compatibility (issue286, by timgraham).
1413

1514
Internal Changes
1615

sqlparse/tokens.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ def __contains__(self, item):
1919
return item is not None and (self is item or item[:len(self)] == self)
2020

2121
def __getattr__(self, name):
22-
if name == '__set_name__':
23-
raise AttributeError
2422
new = _TokenType(self + (name,))
2523
setattr(self, name, new)
2624
new.parent = self

0 commit comments

Comments
 (0)