#1 ✓resolved
Patrick Altman

Clean Up __init__.py

Reported by Patrick Altman | April 19th, 2008 @ 12:54 AM

C: 1: Missing docstring

C: 26: Invalid name "SystemConfigPath" (should match (([A-Z_][A-Z1-9_]*)|(__.*__))$)

C: 27: Invalid name "UserConfigPath" (should match (([A-Z_][A-Z1-9_]*)|(__.*__))$)

C: 29:Config: Missing docstring

C: 75: Invalid name "USERNAME" (should match [a-z_][a-z0-9_]{2,30}$)

C: 76: Invalid name "PASSWORD" (should match [a-z_][a-z0-9_]{2,30}$)

C: 78: Invalid name "API_URL" (should match [a-z_][a-z0-9_]{2,30}$)

C: 80: Invalid name "TEST_ALBUM_ID" (should match [a-z_][a-z0-9_]{2,30}$)

C: 81: Invalid name "TEST_SECTION_ID" (should match [a-z_][a-z0-9_]{2,30}$)

C: 77: Invalid name "API_KEY" (should match [a-z_][a-z0-9_]{2,30}$)

C: 30:Config.__init__: Invalid name "fp" (should match [a-z_][a-z0-9_]{2,30}$)

C: 40:Config.get: Missing docstring

W: 40:Config.get: Arguments number differs from overridden method

W: 43:Config.get: Catch "Exception"

C: 43:Config.get: Invalid name "e" (should match [a-z_][a-z0-9_]{2,30}$)

C: 48:Config.getint: Missing docstring

W: 48:Config.getint: Arguments number differs from overridden method

W: 52:Config.getint: No exception type(s) specified

C: 55:Config.getfloat: Missing docstring

W: 55:Config.getfloat: Arguments number differs from overridden method

W: 59:Config.getfloat: No exception type(s) specified

C: 62:Config.getbool: Missing docstring

W: 75: Attribute 'USERNAME' defined outside __init__

W: 76: Attribute 'PASSWORD' defined outside __init__

W: 78: Attribute 'API_URL' defined outside __init__

W: 80: Attribute 'TEST_ALBUM_ID' defined outside __init__

W: 81: Attribute 'TEST_SECTION_ID' defined outside __init__

W: 77: Attribute 'API_KEY' defined outside __init__

C: 73: Invalid name "config" (should match (([A-Z_][A-Z1-9_]*)|(__.*__))$)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A Python binding to the Phanfare API

People watching this ticket

Tags

Pages