[Uml-devel] [Bug 272972] New: umbrello parses python classes incorrectly

Alex s9gf4ult at gmail.com
Tue May 10 19:09:17 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=272972

           Summary: umbrello parses python classes incorrectly
           Product: umbrello
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: umbrello-devel at kde.org
        ReportedBy: s9gf4ult at gmail.com


Created an attachment (id=59882)
 --> (http://bugs.kde.org/attachment.cgi?id=59882)
The original file

Version:           unspecified (using KDE 4.6.2) 
OS:                Linux

when parse python methods umbrello inserts unnecessarry semicolumn in the
begining of methond. It also generates not correct python code (incorrect
indents)

Reproducible: Always

Steps to Reproduce:
1.Try to parse this
#!/bin/env python
# -*- coging: utf-8 -*-

class hello_class:
    def say_hello(self, param):
        print("hello")
        if 1 == 1:
            a = ["!!!!!!!!!!!!!!11", 23,
                 100, 200]
        else:
            a = 2020
2. export this class again

Actual Results:  

class hello_class(object):

    """
     -*- coging: utf-8 -*-

    :version:
    :author:
    """

    def say_hello(self, self, param):
        """


        @param string self : 
        @param string param : 
        @return string :
        @author
        """
        :
        print("hello")
        if 1==1:
          a=["!!!!!!!!!!!!!!11",23,
          100,200]
        else:
          a=2020

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the umbrello-devel mailing list