use six's integer_types instead of py3 incompatible type 'long'
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py
index 3a0d751..153e1de 100644
--- a/OpenSSL/SSL.py
+++ b/OpenSSL/SSL.py
@@ -5,7 +5,7 @@
 from errno import errorcode
 
 from six import text_type as _text_type
-
+from six import integer_types as integer_types
 
 from OpenSSL._util import (
     ffi as _ffi,
@@ -196,15 +196,15 @@
 
 def _asFileDescriptor(obj):
     fd = None
-    if not isinstance(obj, (int, long)):
+    if not isinstance(obj, integer_types):
         meth = getattr(obj, "fileno", None)
         if meth is not None:
             obj = meth()
 
-    if isinstance(obj, (int, long)):
+    if isinstance(obj, integer_types):
         fd = obj
 
-    if not isinstance(fd, (int, long)):
+    if not isinstance(fd, integer_types):
         raise TypeError("argument must be an int, or have a fileno() method.")
     elif fd < 0:
         raise ValueError(