Browse the code

 

Differences between 130 and 131 on /.
Number of edited files: 12 (0 added, 0 deleted and 12 modified)
Revision 131

About 9 years and 7 months ago.

* Get rid of Python 2.6 warnings (btw, fixes #1232)
Added file(s) Deleted file(s) Modified file(s)

 

Old New Code
27
27
    def __new__(cls, *args, **kws):
28
28
        # Singleton
29
29
        if cls.ref is None:
30
 
            cls.ref = super(ConfigLoader, cls).__new__(cls, args, kws)
 
30
            cls.ref = object.__new__(cls)
31
31
        return cls.ref
32
32

                                        
33
33
    def __init__(self):
34
34

                                        

 

Old New Code
17
17

                                        
18
18
from gobject import idle_add
19
19
from gtk import main_quit as gtk_main_quit
20
 
from md5 import new as md5_new
 
20
from hashlib import md5 as md5_new
21
21
from os.path import join, isfile, isdir
22
22
from os import remove
23
23
import ConfigParser
31
31
    def __new__(cls, *args, **kws):
32
32
        # Singleton
33
33
        if cls.ref is None:
34
 
            cls.ref = super(Functions, cls).__new__(cls, args, kws)
 
34
            cls.ref = object.__new__(cls)
35
35
        return cls.ref
36
36

                                        
37
37
    def __init__(self):
38
38

                                        

 

Old New Code
38
38
    def __new__(cls, *args, **kws):
39
39
        # Singleton
40
40
        if cls.ref is None:
41
 
            cls.ref = super(VolumeManagement, cls).__new__(cls, args, kws)
 
41
            cls.ref = object.__new__(cls)
42
42
        return cls.ref
43
43
	 	     
44
44
    def __init__(self, widgets):
45
45

                                        

 

Old New Code
27
27
    def __new__(cls, *args, **kws):
28
28
        # Singleton
29
29
        if cls.ref is None:
30
 
            cls.ref = super(GStreamer, cls).__new__(cls, args, kws)
 
30
            cls.ref = object.__new__(cls)
31
31
        return cls.ref
32
32

                                        
33
33
    def __init__(self): 
34
34

                                        

 

Old New Code
40
40
    def __new__(cls, *args, **kws):
41
41
        # Singleton
42
42
        if cls.ref is None:
43
 
            cls.ref = super(Playlist, cls).__new__(cls, args, kws)
 
43
            cls.ref = object.__new__(cls)
44
44
        return cls.ref
45
45

                                        
46
46
    def __init__(self, glade_file, config, userconf):
47
47

                                        

 

Old New Code
42
42
    def __new__(cls, *args, **kws):
43
43
        # Singleton
44
44
        if cls.ref is None:
45
 
            cls.ref = super(AlbumsView, cls).__new__(cls, args, kws)
 
45
            cls.ref = object.__new__(cls)
46
46
        return cls.ref
47
47

                                        
48
48
    def __init__(self, parent, glade_file, config, userconf):
49
49

                                        

 

Old New Code
37
37
    def __new__(cls, *args, **kws):
38
38
        # Singleton
39
39
        if cls.ref is None:
40
 
            cls.ref = super(BasicView, cls).__new__(cls, args, kws)
 
40
            cls.ref = object.__new__(cls)
41
41
        return cls.ref
42
42

                                        
43
43
    def __init__(self, parent, glade_file, config, userconf):
44
44

                                        

 

Old New Code
45
45
    def __new__(cls, *args, **kws):
46
46
        # Singleton
47
47
        if cls.ref is None:
48
 
            cls.ref = super(FullView, cls).__new__(cls, args, kws)
 
48
            cls.ref = object.__new__(cls)
49
49
        return cls.ref
50
50

                                        
51
51
    def __init__(self, parent, glade_file, config, userconf):
52
52

                                        

 

Old New Code
31
31
    def __new__(cls, *args, **kws):
32
32
        # Singleton
33
33
        if cls.ref is None:
34
 
            cls.ref = super(LightweightView, cls).__new__(cls, args, kws)
 
34
            cls.ref = object.__new__(cls)
35
35
        return cls.ref
36
36

                                        
37
37
    def __init__(self, parent, glade_file, config, userconf):
38
38

                                        

 

Old New Code
39
39
    def __new__(cls, *args, **kws):
40
40
        # Singleton
41
41
        if cls.ref is None:
42
 
            cls.ref = super(NormalView, cls).__new__(cls, args, kws)
 
42
            cls.ref = object.__new__(cls)
43
43
        return cls.ref
44
44

                                        
45
45
    def __init__(self, parent, glade_file, config, userconf):
46
46

                                        

 

Old New Code
45
45
    def __new__(cls, *args, **kws):
46
46
        # Singleton
47
47
        if cls.ref is None:
48
 
            cls.ref = super(PlaylistsView, cls).__new__(cls, args, kws)
 
48
            cls.ref = object.__new__(cls)
49
49
        return cls.ref
50
50
	 	     
51
51
    def __init__(self, parent, glade_file, config, userconf):
52
52

                                        

 

Old New Code
43
43
    def __new__(cls, *args, **kws):
44
44
        # Singleton
45
45
        if cls.ref is None:
46
 
            cls.ref = super(WebradiosView, cls).__new__(cls, args, kws)
 
46
            cls.ref = object.__new__(cls)
47
47
        return cls.ref
48
48

                                        
49
49
    def __init__(self, parent, glade_file, config, userconf):
50
50