removed unuseful type check in Int32IO class

Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/1267ed04
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/1267ed04
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/1267ed04

Branch: refs/heads/master
Commit: 1267ed047f2f6fe0c2085e0d4a120cb1b463cd76
Parents: 1af9ba6
Author: Alan Boudreault <a...@alanb.ca>
Authored: Fri Jan 27 10:48:54 2017 -0500
Committer: Alan Boudreault <a...@alanb.ca>
Committed: Fri Jan 27 10:48:54 2017 -0500

----------------------------------------------------------------------
 .../src/main/jython/gremlin_python/structure/io/graphson.py    | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/1267ed04/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
----------------------------------------------------------------------
diff --git 
a/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py 
b/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
index 31d9d65..f33f528 100644
--- a/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
+++ b/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
@@ -293,11 +293,7 @@ class Int32IO(_NumberIO):
     def dictify(cls, n, writer):
         if isinstance(n, bool):
             return n
-        if isinstance(n, LongType):
-            graphson_base_type = Int64IO.graphson_base_type
-        else:
-            graphson_base_type = cls.graphson_base_type
-        return GraphSONUtil.typedValue(graphson_base_type, n)
+        return GraphSONUtil.typedValue(cls.graphson_base_type, n)
 
 
 class VertexDeserializer(_GraphSONTypeIO):

Reply via email to