mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Remove from __future__ import absolute_import.
				
					
				
			Except in: - docs/writing-bots-guide.md, because bots are supposed to be Python 2 compatible - puppet/zulip_ops/files/zulip-ec2-configure-interfaces, because this script is still on python2.7 - tools/lint - tools/linter_lib - tools/lister.py For the latter two, because they might be yanked away to a separate repo for general use with other FLOSS projects.
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
from __future__ import division, absolute_import
 | 
			
		||||
from __future__ import division
 | 
			
		||||
 | 
			
		||||
from zerver.models import Realm, UserProfile, Stream, Message
 | 
			
		||||
from analytics.models import InstallationCount, RealmCount, UserCount, StreamCount
 | 
			
		||||
 
 | 
			
		||||
@@ -2,8 +2,6 @@
 | 
			
		||||
 | 
			
		||||
# Copyright: (c) 2008, Jarek Zgoda <jarek.zgoda@gmail.com>
 | 
			
		||||
 | 
			
		||||
from __future__ import absolute_import
 | 
			
		||||
 | 
			
		||||
__revision__ = '$Id: models.py 28 2009-10-22 15:03:02Z jarek.zgoda $'
 | 
			
		||||
 | 
			
		||||
import datetime
 | 
			
		||||
 
 | 
			
		||||
@@ -58,7 +58,6 @@ python file, `zerver/webhooks/mywebhook/view.py`.
 | 
			
		||||
The Hello World integration is in `zerver/webhooks/helloworld/view.py`:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
from __future__ import absolute_import
 | 
			
		||||
from django.utils.translation import ugettext as _
 | 
			
		||||
from zerver.lib.actions import check_send_stream_message
 | 
			
		||||
from zerver.lib.response import json_success, json_error
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,4 @@
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
from __future__ import absolute_import
 | 
			
		||||
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,4 @@
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
from __future__ import absolute_import
 | 
			
		||||
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -37,7 +37,6 @@ Also you can use optional keys to configure the script and change default values
 | 
			
		||||
 | 
			
		||||
-t                  Disable sending request to the Zulip server. Default value: False.
 | 
			
		||||
"""
 | 
			
		||||
from __future__ import absolute_import
 | 
			
		||||
 | 
			
		||||
import os
 | 
			
		||||
import ssl
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
from __future__ import absolute_import
 | 
			
		||||
import xml.etree.ElementTree as ET
 | 
			
		||||
import subprocess
 | 
			
		||||
from six.moves import range
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
from __future__ import print_function, absolute_import
 | 
			
		||||
from __future__ import print_function
 | 
			
		||||
from __future__ import absolute_import
 | 
			
		||||
 | 
			
		||||
import sys
 | 
			
		||||
import os
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user