This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 188797 - syntax errors
Summary: syntax errors
Status: RESOLVED WORKSFORME
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: PC Windows 7 x64
: P2 normal with 1 vote (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-20 15:49 UTC by nbphpuser
Modified: 2015-09-14 15:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nbphpuser 2010-07-20 15:49:44 UTC
Hello!

Using python project with twisted framework, i'm getting syntax error 'inheriting from undefined parent class "basic.LineReceiver"' with following code:


from twisted.protocols import basic

class ServerProtocol(basic.LineReceiver):

    def lineReceived(self, line, *args, **kwargs):
        pass



However this import does not produce an error:


from twisted.protocols.basic import LineReceiver

class ServerProtocol(LineReceiver):

    def lineReceived(self, line, *args, **kwargs):
        pass

Upload example project
Comment 1 Ralph Ruijs 2015-09-14 15:50:51 UTC
Works for me in current dev build.