From edcfc262a33bf8cbe509f2640e55d3361232c185 Mon Sep 17 00:00:00 2001 From: Steven Loria Date: Mon, 9 Sep 2019 10:48:29 -0400 Subject: Remove unnecessary util.callable usage Fixes: #4850 ### Description Removes usage of `util.callable`. ### Checklist This pull request is: - [ ] A documentation / typographical error fix - Good to go, no issue or tests are needed - [x] A short code fix - please include the issue number, and create an issue if none exists, which must include a complete example of the issue. one line code fixes without an issue and demonstration will not be accepted. - Please include: `Fixes: #` in the commit message - please include tests. one line code fixes without tests will not be accepted. - [ ] A new feature implementation - please include the issue number, and create an issue if none exists, which must include a complete example of how the feature would look. - Please include: `Fixes: #` in the commit message - please include tests. **Have a nice day!** Closes: #4851 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4851 Pull-request-sha: a0ccdff2cb74f5e944d8baccc269c382b591c8e2 Change-Id: I79918f44becbc5dbefdc7ff65128695c1cabed1d --- lib/sqlalchemy/util/compat.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'lib/sqlalchemy/util/compat.py') diff --git a/lib/sqlalchemy/util/compat.py b/lib/sqlalchemy/util/compat.py index b655a55f3..8cfaea26e 100644 --- a/lib/sqlalchemy/util/compat.py +++ b/lib/sqlalchemy/util/compat.py @@ -158,14 +158,8 @@ if py3k: def ue(s): return s - if py32: - callable = callable # noqa - else: - - def callable(fn): # noqa - return hasattr(fn, "__call__") - - + # Unused. Kept for backwards compatibility. + callable = callable # noqa else: import base64 import ConfigParser as configparser # noqa -- cgit v1.2.1