import sys
if sys.version < '3':
    import codecs
    def u(x):
        return codecs.unicode_escape_decode(x)[0]
else:
    def u(x):
        return x

import sys
if sys.version_info < (3, 0):
    import codecs
    def u(x):
        return codecs.unicode_escape_decode(x)[0]
else:
    def u(x):
        return x

Change Python version check to use sys.version_info
Change Python version check to use sys.version_info
  import sys
- if sys.version < '3':
+ if sys.version_info < (3, 0):
      import codecs
      def u(x):
          return codecs.unicode_escape_decode(x)[0]
  else:
      def u(x):
          return x
  
Change Python version check to use sys.version_info
## Code Before:
import sys
if sys.version < '3':
    import codecs
    def u(x):
        return codecs.unicode_escape_decode(x)[0]
else:
    def u(x):
        return x

## Instruction:
Change Python version check to use sys.version_info
## Code After:
import sys
if sys.version_info < (3, 0):
    import codecs
    def u(x):
        return codecs.unicode_escape_decode(x)[0]
else:
    def u(x):
        return x
