mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	python: Remove duplicates of global imports inside functions.
Neither of these appears to have been intentional.
This commit is contained in:
		@@ -117,8 +117,6 @@ class ReturnEnabled(logging.Filter):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class RequireReallyDeployed(logging.Filter):
 | 
					class RequireReallyDeployed(logging.Filter):
 | 
				
			||||||
    def filter(self, record: logging.LogRecord) -> bool:
 | 
					    def filter(self, record: logging.LogRecord) -> bool:
 | 
				
			||||||
        from django.conf import settings
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        return settings.PRODUCTION
 | 
					        return settings.PRODUCTION
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -72,7 +72,6 @@ class Command(BaseCommand):
 | 
				
			|||||||
            )
 | 
					            )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        def inner_run() -> None:
 | 
					        def inner_run() -> None:
 | 
				
			||||||
            from django.conf import settings
 | 
					 | 
				
			||||||
            from django.utils import translation
 | 
					            from django.utils import translation
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            translation.activate(settings.LANGUAGE_CODE)
 | 
					            translation.activate(settings.LANGUAGE_CODE)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user