Showing 9,525 of 13,510 total issues
File traceback.py
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""Extract, format and print information about Python stack traces."""
import linecache
import sys
import types
File cygwinccompiler.py
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""distutils.cygwinccompiler
Provides the CygwinCCompiler class, a subclass of UnixCCompiler that
handles the Cygwin port of the GNU C compiler to Windows. It also contains
the Mingw32CCompiler class which handles the mingw32 port of GCC (same as
File ast.py
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# -*- coding: utf-8 -*-
"""
ast
~~~
File Lists.py
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from pybench import Test
class SimpleListManipulation(Test):
version = 2.0
File htmlentitydefs.py
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""HTML character entity references."""
# maps the HTML entity name to the Unicode codepoint
name2codepoint = {
'AElig': 0x00c6, # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
File htmlentitydefs.py
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""HTML character entity references."""
# maps the HTML entity name to the Unicode codepoint
name2codepoint = {
'AElig': 0x00c6, # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
Consider simplifying this complex logical expression. Open
Open
if (LA67_1 == EOF or LA67_1 == 25 or (27 <= LA67_1 <= 28) or LA67_1 == 44 or LA67_1 == 47 or LA67_1 == 53 or (62 <= LA67_1 <= 66) or (68 <= LA67_1 <= 73) or (75 <= LA67_1 <= 77) or (80 <= LA67_1 <= 102)) :
alt67 = 1
elif (LA67_1 == IDENTIFIER or LA67_1 == STRING_LITERAL) :
alt67 = 2
else:
Consider simplifying this complex logical expression. Open
Open
if ((IDENTIFIER <= LA94_0 <= FLOATING_POINT_LITERAL) or (25 <= LA94_0 <= 26) or (29 <= LA94_0 <= 43) or (45 <= LA94_0 <= 46) or (48 <= LA94_0 <= 62) or LA94_0 == 66 or (68 <= LA94_0 <= 69) or (72 <= LA94_0 <= 74) or (77 <= LA94_0 <= 79) or (103 <= LA94_0 <= 108) or (110 <= LA94_0 <= 117)) :
alt94 = 1
if alt94 == 1:
Consider simplifying this complex logical expression. Open
Open
if (LA67_1 == EOF or LA67_1 == 25 or (27 <= LA67_1 <= 28) or LA67_1 == 44 or LA67_1 == 47 or LA67_1 == 53 or (62 <= LA67_1 <= 66) or (68 <= LA67_1 <= 73) or (75 <= LA67_1 <= 77) or (80 <= LA67_1 <= 102)) :
alt67 = 1
elif (LA67_1 == IDENTIFIER or LA67_1 == STRING_LITERAL) :
alt67 = 2
else:
Consider simplifying this complex logical expression. Open
Open
if ((IDENTIFIER <= LA94_0 <= FLOATING_POINT_LITERAL) or (25 <= LA94_0 <= 26) or (29 <= LA94_0 <= 43) or (45 <= LA94_0 <= 46) or (48 <= LA94_0 <= 62) or LA94_0 == 66 or (68 <= LA94_0 <= 69) or (72 <= LA94_0 <= 74) or (77 <= LA94_0 <= 79) or (103 <= LA94_0 <= 108) or (110 <= LA94_0 <= 117)) :
alt94 = 1
if alt94 == 1:
HTMLDoc
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class HTMLDoc(Doc):
"""Formatter class for HTML documentation."""
# ------------------------------------------- HTML formatting utilities
RCS
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class RCS:
"""RCS interface class (local filesystem version).
An instance of this class represents a directory with rcs version
SSLSocket
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SSLSocket(socket):
"""This class implements a subtype of socket.socket that wraps
the underlying OS socket in an SSL context when necessary, and
provides read and write methods over that channel."""
HTMLDoc
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class HTMLDoc(Doc):
"""Formatter class for HTML documentation."""
# ------------------------------------------- HTML formatting utilities
WeakKeyDictionary
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class WeakKeyDictionary(UserDict.UserDict):
""" Mapping class that references keys weakly.
Entries in the dictionary will be discarded when there is no
longer a strong reference to the key. This can be used to
MH
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MH(Mailbox):
"""An MH mailbox."""
def __init__(self, path, factory=None, create=True):
"""Initialize an MH instance."""
Complex
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Complex(Number):
"""Complex defines the operations that work on the builtin complex type.
In short, those are: a conversion to complex, .real, .imag, +, -,
*, /, abs(), .conjugate, ==, and !=.
NamedNodeMap
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class NamedNodeMap(object):
"""The attribute list is a transient interface to the underlying
dictionaries. Mutations here will change the underlying element's
dictionary.
UUID
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class UUID(object):
"""Instances of the UUID class represent UUIDs as specified in RFC 4122.
UUID objects are immutable, hashable, and usable as dictionary keys.
Converting a UUID to a string with str() yields something in the form
'12345678-1234-1234-1234-123456789abc'. The UUID constructor accepts
Aifc_read
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Aifc_read:
# Variables used in this class:
#
# These variables are available to the user though appropriate
# methods of this class: