mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +00:00 
			
		
		
		
	Convert all classes to "new-type" Python classes
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
		
							parent
							
								
									1b0a85d879
								
							
						
					
					
						commit
						d41bf54585
					
				@ -237,7 +237,7 @@ RDEPENDS = 9
 | 
			
		||||
RCONFLICTS = 10
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Britney:
 | 
			
		||||
class Britney(object):
 | 
			
		||||
    """Britney, the Debian testing updater script
 | 
			
		||||
    
 | 
			
		||||
    This is the script that updates the testing distribution. It is executed
 | 
			
		||||
 | 
			
		||||
@ -15,7 +15,7 @@
 | 
			
		||||
import readline
 | 
			
		||||
import bisect
 | 
			
		||||
 | 
			
		||||
class Completer:
 | 
			
		||||
class Completer(object):
 | 
			
		||||
    """Completer class
 | 
			
		||||
 | 
			
		||||
    This class provides a readline completer for the britney hint-tester
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								hints.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								hints.py
									
									
									
									
									
								
							@ -14,7 +14,7 @@
 | 
			
		||||
 | 
			
		||||
from migrationitem import HintItem
 | 
			
		||||
 | 
			
		||||
class HintCollection:
 | 
			
		||||
class HintCollection(object):
 | 
			
		||||
    def __init__(self):
 | 
			
		||||
        self._hints = []
 | 
			
		||||
 | 
			
		||||
@ -35,7 +35,7 @@ class HintCollection:
 | 
			
		||||
    def add_hint(self, hint, user):
 | 
			
		||||
        self._hints.append(Hint(hint, user))
 | 
			
		||||
 | 
			
		||||
class Hint:
 | 
			
		||||
class Hint(object):
 | 
			
		||||
    def __init__(self, hint, user):
 | 
			
		||||
        self._hint = hint
 | 
			
		||||
        self._user = user
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user