mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	zerver/lib: Change use of typing.Text to str.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							2f3b2fbf59
						
					
				
				
					commit
					1f9244e060
				
			@@ -2,9 +2,8 @@ from django.core.exceptions import ValidationError
 | 
			
		||||
from django.utils.translation import ugettext as _
 | 
			
		||||
 | 
			
		||||
import re
 | 
			
		||||
from typing import Text
 | 
			
		||||
 | 
			
		||||
def validate_domain(domain: Text) -> None:
 | 
			
		||||
def validate_domain(domain: str) -> None:
 | 
			
		||||
    if domain is None or len(domain) == 0:
 | 
			
		||||
        raise ValidationError(_("Domain can't be empty."))
 | 
			
		||||
    if '.' not in domain:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user