[PATCH 11/24] pynfs: python3 support plan: xdrgen: remove 'L' suffix of long integer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Jianhong.Yin" <yin-jianhong@xxxxxxx>

Signed-off-by: Jianhong Yin <yin-jianhong@xxxxxxx>
---
 xdr/xdrgen.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/xdr/xdrgen.py b/xdr/xdrgen.py
index 8856b4c..b5119cc 100755
--- a/xdr/xdrgen.py
+++ b/xdr/xdrgen.py
@@ -341,10 +341,7 @@ def p_constant(t):
     '''constant : CONST10
                 | CONST8
                 | CONST16'''
-    if len(t[1]) > 9:
-        t[0] = t[1] + 'L'
-    else:
-        t[0] = t[1]
+    t[0] = t[1]
 
 def p_value(t):
     '''value : constant
-- 
2.17.1

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux