Drop Python 2 support in common_device_type.py (#54691)
Summary:
Hey!
Just stumbled across these Python 2 fragments while reading the source code and thought it could be removed, since the Python 2 support has already been dropped.
mruberry
Pull Request resolved: https://github.com/pytorch/pytorch/pull/54691
Reviewed By: mruberry
Differential Revision: D27344439
Pulled By: ailzhang
fbshipit-source-id: 926303bfff9afa6dabd2efb5e98f9d0d9ef83dc7