Browse Source

HUE-8426 [backend] fix hue CLI commands don't work after Django upgrade

Removing unused import line.
>from optparse import make_option
Prakash Ranade 7 years ago
parent
commit
552864a23c

+ 0 - 3
apps/useradmin/src/useradmin/management/commands/import_ldap_group.py

@@ -14,8 +14,6 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-from optparse import make_option
-
 from django.core.management.base import BaseCommand, CommandError
 from django.utils.translation import ugettext_lazy as _t, ugettext as _
 
@@ -24,7 +22,6 @@ from desktop.conf import LDAP
 from useradmin import ldap_access
 from useradmin.views import import_ldap_groups
 
-
 class Command(BaseCommand):
   """
   Handler for importing LDAP groups into the Hue database.

+ 0 - 2
apps/useradmin/src/useradmin/management/commands/import_ldap_user.py

@@ -14,8 +14,6 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-from optparse import make_option
-
 from django.core.management.base import BaseCommand, CommandError
 from django.utils.translation import ugettext_lazy as _t, ugettext as _
 

+ 0 - 2
apps/useradmin/src/useradmin/management/commands/sync_ldap_users_and_groups.py

@@ -14,8 +14,6 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-from optparse import make_option
-
 from django.core.management.base import BaseCommand
 from django.utils.translation import ugettext_lazy as _t
 

+ 0 - 2
apps/useradmin/src/useradmin/management/commands/useradmin_sync_with_unix.py

@@ -14,8 +14,6 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-from optparse import make_option
-
 from useradmin.views import sync_unix_users_and_groups
 
 from django.core.management.base import BaseCommand

+ 0 - 1
desktop/core/src/desktop/management/commands/config_override.py

@@ -18,7 +18,6 @@
 from configobj import ConfigObj
 
 from django.core.management.base import BaseCommand, CommandError
-from optparse import make_option
 
 import simplejson as json
 

+ 0 - 1
desktop/core/src/desktop/management/commands/config_upgrade.py

@@ -26,7 +26,6 @@ import logging
 import os, glob, string
 import desktop.conf
 import desktop.log
-from optparse import make_option
 from desktop.lib.paths import get_desktop_root
 from django.core.management.base import BaseCommand, CommandError
 from django.utils.translation import ugettext as _

+ 0 - 2
desktop/core/src/desktop/management/commands/create_user_directories.py

@@ -18,8 +18,6 @@
 
 import logging
 
-from optparse import make_option
-
 from django.contrib.auth.models import User
 from django.core.management.base import CommandError, BaseCommand
 from django.utils.translation import ugettext_lazy as _