mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-10-26 06:04: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 | RCONFLICTS = 10 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Britney: | class Britney(object): | ||||||
|     """Britney, the Debian testing updater script |     """Britney, the Debian testing updater script | ||||||
|      |      | ||||||
|     This is the script that updates the testing distribution. It is executed |     This is the script that updates the testing distribution. It is executed | ||||||
|  | |||||||
| @ -15,7 +15,7 @@ | |||||||
| import readline | import readline | ||||||
| import bisect | import bisect | ||||||
| 
 | 
 | ||||||
| class Completer: | class Completer(object): | ||||||
|     """Completer class |     """Completer class | ||||||
| 
 | 
 | ||||||
|     This class provides a readline completer for the britney hint-tester |     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 | from migrationitem import HintItem | ||||||
| 
 | 
 | ||||||
| class HintCollection: | class HintCollection(object): | ||||||
|     def __init__(self): |     def __init__(self): | ||||||
|         self._hints = [] |         self._hints = [] | ||||||
| 
 | 
 | ||||||
| @ -35,7 +35,7 @@ class HintCollection: | |||||||
|     def add_hint(self, hint, user): |     def add_hint(self, hint, user): | ||||||
|         self._hints.append(Hint(hint, user)) |         self._hints.append(Hint(hint, user)) | ||||||
| 
 | 
 | ||||||
| class Hint: | class Hint(object): | ||||||
|     def __init__(self, hint, user): |     def __init__(self, hint, user): | ||||||
|         self._hint = hint |         self._hint = hint | ||||||
|         self._user = user |         self._user = user | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user