mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-31 23:22:10 +00:00 
			
		
		
		
	Fix 2 DeprecationWarning: invlid escape sequence (#872)
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
This commit is contained in:
		
				
					committed by
					
						 Vladimir Iakovlev
						Vladimir Iakovlev
					
				
			
			
				
	
			
			
			
						parent
						
							ce5feaebf7
						
					
				
				
					commit
					1eb4ccbcc9
				
			| @@ -37,7 +37,7 @@ http://github.com/ninjaaron/fast-entry_points | |||||||
| ''' | ''' | ||||||
| from setuptools.command import easy_install | from setuptools.command import easy_install | ||||||
| import re | import re | ||||||
| TEMPLATE = '''\ | TEMPLATE = r'''\ | ||||||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||||
| # EASY-INSTALL-ENTRY-SCRIPT: '{3}','{4}','{5}' | # EASY-INSTALL-ENTRY-SCRIPT: '{3}','{4}','{5}' | ||||||
| __requires__ = '{3}' | __requires__ = '{3}' | ||||||
| @@ -83,7 +83,7 @@ def main(): | |||||||
|     import shutil |     import shutil | ||||||
|     import sys |     import sys | ||||||
|     dests = sys.argv[1:] or ['.'] |     dests = sys.argv[1:] or ['.'] | ||||||
|     filename = re.sub('\.pyc$', '.py', __file__) |     filename = re.sub(r'\.pyc$', '.py', __file__) | ||||||
|  |  | ||||||
|     for dst in dests: |     for dst in dests: | ||||||
|         shutil.copy(filename, dst) |         shutil.copy(filename, dst) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user