Showing 9,525 of 13,510 total issues
Consider simplifying this complex logical expression. Open
Open
if LA64 == IDENTIFIER or LA64 == HEX_LITERAL or LA64 == OCTAL_LITERAL or LA64 == DECIMAL_LITERAL or LA64 == CHARACTER_LITERAL or LA64 == STRING_LITERAL or LA64 == FLOATING_POINT_LITERAL or LA64 == 62:
alt64 = 1
elif LA64 == 72:
alt64 = 2
elif LA64 == 73:
Pickler
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Pickler:
def __init__(self, file, protocol=None):
"""This takes a file-like object for writing a pickle data stream.
ModuleFinder
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ModuleFinder:
def __init__(self, path=None, debug=0, excludes=[], replace_paths=[]):
if path is None:
path = sys.path
Telnet
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Telnet:
"""Telnet interface class.
An instance of this class represents a connection to a telnet
Element
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Element(object):
# <tag attrib>text<child/>...</tag>tail
##
# (Attribute) Element tag.
BaseSet
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class BaseSet(object):
"""Common base class for mutable and immutable sets."""
__slots__ = ['_data']
ProfileBrowser
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ProfileBrowser(cmd.Cmd):
def __init__(self, profile=None):
cmd.Cmd.__init__(self)
self.prompt = "% "
self.stats = None
Wave_write
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Wave_write:
"""Variables used in this class:
These variables are user settable through appropriate methods
of this class:
SpooledTemporaryFile
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SpooledTemporaryFile:
"""Temporary file wrapper, specialized to switch from
StringIO to a real file when it exceeds a certain size or
when a fileno is needed.
"""
ASDLParser
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ASDLParser(spark.GenericParser, object):
def __init__(self):
super(ASDLParser, self).__init__("module")
def typestring(self, tok):
Memory
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Memory:
def __init__( self, helper ):
self.helper = helper
####################################################################################
Pickler
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Pickler:
def __init__(self, file, protocol=None):
"""This takes a file-like object for writing a pickle data stream.
ModuleFinder
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ModuleFinder:
def __init__(self, path=None, debug=0, excludes=[], replace_paths=[]):
if path is None:
path = sys.path
Telnet
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Telnet:
"""Telnet interface class.
An instance of this class represents a connection to a telnet
Element
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Element(object):
# <tag attrib>text<child/>...</tag>tail
##
# (Attribute) Element tag.
BaseSet
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class BaseSet(object):
"""Common base class for mutable and immutable sets."""
__slots__ = ['_data']
ProfileBrowser
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ProfileBrowser(cmd.Cmd):
def __init__(self, profile=None):
cmd.Cmd.__init__(self)
self.prompt = "% "
self.stats = None
Wave_write
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Wave_write:
"""Variables used in this class:
These variables are user settable through appropriate methods
of this class:
SpooledTemporaryFile
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SpooledTemporaryFile:
"""Temporary file wrapper, specialized to switch from
StringIO to a real file when it exceeds a certain size or
when a fileno is needed.
"""
File gopher.py
has 291 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
#! /usr/bin/env python
# A simple gopher client.
#
# Usage: gopher [ [selector] host [port] ]