mirror of
				https://git.launchpad.net/ubuntu-dev-tools
				synced 2025-11-04 07:54:03 +00:00 
			
		
		
		
	Port update-maintainer to Python 3
This commit is contained in:
		
							parent
							
								
									96896fd2c8
								
							
						
					
					
						commit
						5f3247cfc0
					
				
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							@ -45,6 +45,7 @@ if sys.version_info[0] >= 3:
 | 
			
		||||
        'ubuntu-build',
 | 
			
		||||
        'ubuntu-iso',
 | 
			
		||||
        'ubuntu-upload-permission',
 | 
			
		||||
        'update-maintainer',
 | 
			
		||||
    ]
 | 
			
		||||
    data_files = [
 | 
			
		||||
        ('share/bash-completion/completions', glob.glob("bash_completion/*")),
 | 
			
		||||
@ -56,7 +57,6 @@ else:
 | 
			
		||||
    scripts = [
 | 
			
		||||
        'import-bug-from-debian',
 | 
			
		||||
        'merge-changelog',
 | 
			
		||||
        'update-maintainer',
 | 
			
		||||
    ]
 | 
			
		||||
    data_files = []
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
#!/usr/bin/python
 | 
			
		||||
#!/usr/bin/python3
 | 
			
		||||
#
 | 
			
		||||
# Copyright (C) 2010, Benjamin Drung <bdrung@ubuntu.com>
 | 
			
		||||
#
 | 
			
		||||
@ -39,8 +39,8 @@ def main():
 | 
			
		||||
    (options, args) = parser.parse_args()
 | 
			
		||||
 | 
			
		||||
    if len(args) != 0:
 | 
			
		||||
        print >> sys.stderr, ("%s: Error: Unsupported additional parameters "
 | 
			
		||||
                              "specified: %s") % (script_name, ", ".join(args))
 | 
			
		||||
        print("%s: Error: Unsupported additional parameters specified: %s"
 | 
			
		||||
              % (script_name, ", ".join(args)), file=sys.stderr)
 | 
			
		||||
        sys.exit(1)
 | 
			
		||||
 | 
			
		||||
    if not options.restore:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user