Skip to content
Snippets Groups Projects
Commit f922bcd1 authored by Seblu's avatar Seblu
Browse files

cleaning import

parent b7846669
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,8 @@ InstallSystems Image Manipulation Tool ...@@ -9,8 +9,8 @@ InstallSystems Image Manipulation Tool
import os import os
import time import time
import datetime import datetime
import argparse
import installsystems import installsystems
import installsystems.argparse as argparse # To remove when default to python 2.7
from installsystems.printer import * from installsystems.printer import *
from installsystems.image import SourceImage from installsystems.image import SourceImage
......
...@@ -9,9 +9,9 @@ InstallSystems Installation Tool ...@@ -9,9 +9,9 @@ InstallSystems Installation Tool
import os import os
import time import time
import datetime import datetime
import argparse
import installsystems import installsystems
import installsystems.tools as istools import installsystems.tools as istools
import installsystems.argparse as argparse # To remove when default to python 2.7
from installsystems.printer import * from installsystems.printer import *
from installsystems.repository import RepositoryManager, RepositoryConfig from installsystems.repository import RepositoryManager, RepositoryConfig
from installsystems.image import PackageImage from installsystems.image import PackageImage
......
...@@ -7,8 +7,8 @@ InstallSystems Repository Manipulation Tool ...@@ -7,8 +7,8 @@ InstallSystems Repository Manipulation Tool
''' '''
import os import os
import argparse
import installsystems import installsystems
import installsystems.argparse as argparse # To remove when default to python 2.7
from installsystems.printer import * from installsystems.printer import *
from installsystems.repository import Repository, RepositoryConfig from installsystems.repository import Repository, RepositoryConfig
from installsystems.image import PackageImage from installsystems.image import PackageImage
......
...@@ -9,7 +9,6 @@ Database stuff ...@@ -9,7 +9,6 @@ Database stuff
import json import json
import os import os
import shutil import shutil
import tarfile
import cStringIO import cStringIO
import sqlite3 import sqlite3
import installsystems.tools as istools import installsystems.tools as istools
......
...@@ -11,10 +11,6 @@ import time ...@@ -11,10 +11,6 @@ import time
import tarfile import tarfile
import StringIO import StringIO
import re import re
# Use tarfile from python 2.7 which include filter parameter in add method.
# This is really needed to filter an modify tarball content on the fly.
# Should be removed when python 2.7 will be the minimum python version
from installsystems import tarfile
class Tarball(tarfile.TarFile): class Tarball(tarfile.TarFile):
def add_str(self, name, content, ftype, mode): def add_str(self, name, content, ftype, mode):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment