Replace typing.Text with str.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
							parent
							
								
									189cf48573
								
							
						
					
					
						commit
						626359596e
					
				
					 4 changed files with 12 additions and 12 deletions
				
			
		|  | @ -12,7 +12,7 @@ | |||
| import os | ||||
| import os.path | ||||
| import sys | ||||
| from typing import Any, Dict, Optional, Text, Tuple | ||||
| from typing import Any, Dict | ||||
| 
 | ||||
| import pysvn | ||||
| 
 | ||||
|  | @ -34,19 +34,19 @@ client = zulip.Client( | |||
| )  # type: zulip.Client | ||||
| svn = pysvn.Client()  # type: pysvn.Client | ||||
| 
 | ||||
| path, rev = sys.argv[1:]  # type: Tuple[Text, Text] | ||||
| path, rev = sys.argv[1:] | ||||
| 
 | ||||
| # since its a local path, prepend "file://" | ||||
| path = "file://" + path | ||||
| 
 | ||||
| entry = svn.log(path, revision_end=pysvn.Revision(pysvn.opt_revision_kind.number, rev))[ | ||||
|     0 | ||||
| ]  # type: Dict[Text, Any] | ||||
| ]  # type: Dict[str, Any] | ||||
| message = "**{}** committed revision r{} to `{}`.\n\n> {}".format( | ||||
|     entry["author"], rev, path.split("/")[-1], entry["revprops"]["svn:log"] | ||||
| )  # type: Text | ||||
| ) | ||||
| 
 | ||||
| destination = config.commit_notice_destination(path, rev)  # type: Optional[Dict[Text, Text]] | ||||
| destination = config.commit_notice_destination(path, rev) | ||||
| 
 | ||||
| if destination is not None: | ||||
|     message_data = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Anders Kaseorg
						Anders Kaseorg