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:
rht 2017-10-14 15:59:58 +02:00 committed by Tim Abbott
parent 64cd0c2c5a
commit a603a4f9f5
8 changed files with 3 additions and 11 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,6 +1,4 @@
#!/usr/bin/env python3
from __future__ import absolute_import
import os
import sys

View File

@ -1,6 +1,4 @@
#!/usr/bin/env python3
from __future__ import absolute_import
import os
import sys

View File

@ -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

View File

@ -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

View File

@ -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