mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Whilespace normalization (reindint.py).
This commit is contained in:
		
							parent
							
								
									17a35f906c
								
							
						
					
					
						commit
						584b0e0c3d
					
				
					 31 changed files with 53 additions and 314 deletions
				
			
		|  | @ -3,4 +3,3 @@ | |||
| if __name__ == '__main__': | ||||
|     from setuptools.command.easy_install import main | ||||
|     main() | ||||
| 
 | ||||
|  |  | |||
|  | @ -2375,4 +2375,3 @@ def _initialize(g): | |||
| # calling ``require()``) will get activated as well. | ||||
| add_activation_listener(lambda dist: dist.activate()) | ||||
| working_set.entries=[]; map(working_set.add_entry,sys.path) # match order | ||||
| 
 | ||||
|  |  | |||
|  | @ -62,21 +62,3 @@ def reinitialize_command(self, command, reinit_subcommands=0, **kw): | |||
| 
 | ||||
| import distutils.core | ||||
| distutils.core.Command = Command    # we can't patch distutils.cmd, alas | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -198,8 +198,3 @@ def unpack_tarfile(filename, extract_dir, progress_filter=default_filter): | |||
| 
 | ||||
| 
 | ||||
| extraction_drivers = unpack_directory, unpack_zipfile, unpack_tarfile | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -77,6 +77,3 @@ def format_alias(name, aliases): | |||
|     else: | ||||
|         source = '--filename=%r' % source | ||||
|     return source+name+' '+command | ||||
|              | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -447,5 +447,3 @@ def visit (z, dirname, names): | |||
|         os.path.walk(base_dir, visit, None) | ||||
| 
 | ||||
|     return zip_filename | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -35,34 +35,3 @@ def _make_spec_file(self): | |||
|         ] | ||||
|         spec.insert(spec.index(line24)+1, "%define unmangled_version "+version) | ||||
|         return spec | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -283,5 +283,3 @@ def link_shared_object(self, objects, output_libname, output_dir=None, | |||
|         self.create_static_lib( | ||||
|             objects, basename, output_dir, debug, target_lang | ||||
|         ) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -190,16 +190,3 @@ def assert_relative(path): | |||
| setup.py directory, *never* absolute paths. | ||||
| """ % path | ||||
|     ) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -114,10 +114,3 @@ def install_egg_scripts(self, dist): | |||
|             script_text = f.read() | ||||
|             f.close() | ||||
|             self.install_script(dist, script_name, script_text, script_path) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -1553,8 +1553,3 @@ def _show_help(self,*args,**kw): | |||
|             distclass=DistributionWithoutHelpCommands, **kw | ||||
|         ) | ||||
|     ) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -363,7 +363,3 @@ def get_pkg_info_revision(): | |||
|             if match: | ||||
|                 return int(match.group(1)) | ||||
|     return 0 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -99,25 +99,3 @@ def do_egg_install(self): | |||
|         cmd.args = args | ||||
|         cmd.run() | ||||
|         setuptools.bootstrap_install_from = None | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -79,4 +79,3 @@ def install_namespaces(self): | |||
|                     % locals() | ||||
|                 ) | ||||
|             f.close() | ||||
| 
 | ||||
|  |  | |||
|  | @ -74,9 +74,3 @@ def get_outputs(self): | |||
|         if exclude: | ||||
|             return [f for f in outputs if f not in exclude] | ||||
|         return outputs | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -54,29 +54,3 @@ def write_script(self, script_name, contents, mode="t", *ignored): | |||
|                 os.chmod(target,0755) | ||||
|             except (AttributeError, os.error): | ||||
|                 pass | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -55,28 +55,3 @@ def run(self): | |||
|                 log.info("Deleting %s", f) | ||||
|                 if not self.dry_run: | ||||
|                     os.unlink(f) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -22,4 +22,3 @@ def run(self): | |||
|                     settings.setdefault(cmd,{})[opt] = val | ||||
| 
 | ||||
|         edit_config(self.filename, settings, self.dry_run) | ||||
| 
 | ||||
|  |  | |||
|  | @ -161,4 +161,3 @@ def read_template(self): | |||
|             # dying and thus masking the real error | ||||
|             sys.exc_info()[2].tb_next.tb_frame.f_locals['template'].close() | ||||
|             raise | ||||
| 
 | ||||
|  |  | |||
|  | @ -156,9 +156,3 @@ def run(self): | |||
|             }, | ||||
|             self.dry_run | ||||
|         ) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -117,7 +117,3 @@ def run_tests(self): | |||
|             None, None, [unittest.__file__]+self.test_args, | ||||
|             testLoader = loader_class() | ||||
|         ) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -237,10 +237,3 @@ def extract_constant(code,symbol,default=-1): | |||
|             return const | ||||
|         else: | ||||
|             const = default | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -796,25 +796,3 @@ def validate(self,dist): | |||
|                     " doesn't contain any packages or modules under %s" | ||||
|                     % (self.description, item, item) | ||||
|                 ) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -33,4 +33,3 @@ class Library(Extension): | |||
| distutils.extension.Extension = Extension | ||||
| if 'distutils.command.build_ext' in sys.modules: | ||||
|     sys.modules['distutils.command.build_ext'].Extension = Extension | ||||
| 
 | ||||
|  |  | |||
|  | @ -672,26 +672,3 @@ def get_sf_ip(): | |||
|             # DNS-bl0ck1n9 f1r3w4llz sUx0rs! | ||||
|             _sf_mirrors[:] = ['dl.sourceforge.net'] | ||||
|     return random.choice(_sf_mirrors) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -201,5 +201,3 @@ def __str__(self): | |||
| support alternate installation locations even if you run its setup | ||||
| script by hand.  Please inform the package's author and the EasyInstall | ||||
| maintainers to find out if a fix or workaround is available.""" % self.args | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -72,11 +72,3 @@ def __boot(): | |||
| if __name__=='site': | ||||
|     __boot() | ||||
|     del __boot | ||||
|      | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -362,8 +362,3 @@ def testNoSuite(self): | |||
|         ts5 = makeSetup().get_command_obj('test') | ||||
|         ts5.ensure_finalized() | ||||
|         self.assertEqual(ts5.test_suite, None) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -481,12 +481,3 @@ def c(s1,s2): | |||
|         for p,v1 in enumerate(torture): | ||||
|             for v2 in torture[p+1:]: | ||||
|                 c(v2,v1) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Peters
						Tim Peters