MisterAI's picture
download
raw
476 Bytes
# Copyright 2006 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Fixer that turns 'long' into 'int' everywhere.
"""
# Local imports
from lib2to3 import fixer_base
from lib2to3.fixer_util import is_probably_builtin
class FixLong(fixer_base.BaseFix):
BM_compatible = True
PATTERN = "'long'"
def transform(self, node, results):
if is_probably_builtin(node):
node.value = "int"
node.changed()

Xet Storage Details

Size:
476 Bytes
·
Xet hash:
3d54e6f9cfea7132d0415d5de193a80edbb190650b5f0af180e8901e271fc9fc

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.