Changeset 1162 in tailor


Ignore:
Timestamp:
06/13/06 02:17:34 (7 years ago)
Author:
lele@…
Hash name:
20060613001734-97f81-447ffbf3b7619350a7f773eb52c01d849f99bd54
Message:

Remove useless imports noticed by pyflakes

Location:
vcpx
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • vcpx/changes.py

    r994 r1162  
    143143 
    144144    def __str__(self): 
    145         import codecs 
    146  
    147145        s = [] 
    148146        s.append('Revision: %s' % self.revision) 
  • vcpx/cvsps.py

    r1157 r1162  
    1414__docformat__ = 'reStructuredText' 
    1515 
    16 from shwrap import ExternalCommand, PIPE, STDOUT 
     16from shwrap import ExternalCommand, PIPE 
    1717from source import UpdatableSourceWorkingDir, ChangesetApplicationFailure, \ 
    1818     InvocationError 
     
    188188 
    189189    def _applyChangeset(self, changeset): 
    190         from os.path import join, exists, dirname, split 
     190        from os.path import join, exists, split 
    191191        from os import listdir 
    192192        from shutil import rmtree 
  • vcpx/darcs.py

    r1148 r1162  
    1616     GetUpstreamChangesetsFailure 
    1717from target import SynchronizableTargetWorkingDir, TargetInitializationFailure 
    18 from xml.sax import SAXException 
    1918import re 
    2019 
  • vcpx/svn.py

    r1157 r1162  
    1212__docformat__ = 'reStructuredText' 
    1313 
    14 from shwrap import ExternalCommand, PIPE, STDOUT, ReopenableNamedTemporaryFile 
    15 from source import UpdatableSourceWorkingDir, \ 
    16      ChangesetApplicationFailure, GetUpstreamChangesetsFailure 
     14from shwrap import ExternalCommand, PIPE, ReopenableNamedTemporaryFile 
     15from source import UpdatableSourceWorkingDir, ChangesetApplicationFailure 
    1716from target import SynchronizableTargetWorkingDir, TargetInitializationFailure 
    1817from config import ConfigurationError 
     
    497496        """ 
    498497 
    499         from os import rename, walk, remove 
    500         from os.path import join, isdir, exists 
     498        from os import rename 
     499        from os.path import join, exists 
    501500 
    502501        # --force in case the file has been changed and moved in one revision 
  • vcpx/tailor.py

    r1154 r1162  
    1717from config import Config, ConfigurationError 
    1818from project import Project 
    19 from source import InvocationError, GetUpstreamChangesetsFailure 
     19from source import GetUpstreamChangesetsFailure 
    2020 
    2121class Tailorizer(Project): 
  • vcpx/tests/shwrap.py

    r1047 r1162  
    77 
    88from unittest import TestCase 
    9 from vcpx.shwrap import ExternalCommand, PIPE, STDOUT 
     9from vcpx.shwrap import ExternalCommand, PIPE 
    1010 
    1111class SystemCommand(TestCase): 
  • vcpx/tests/cvsps.py

    r904 r1162  
    88from unittest import TestCase 
    99from datetime import datetime 
    10 from StringIO import StringIO 
    1110from vcpx.cvsps import changesets_from_cvsps 
    1211 
  • vcpx/cvs.py

    r1159 r1162  
    770770        """Return a set of (entry name, version number) pairs.""" 
    771771 
    772         from os.path import join 
    773  
    774772        pairs = [(prefix+e.filename, normalize_cvs_rev(e.cvs_version)) 
    775773                 for e in self.files.values()] 
  • vcpx/tests/svn.py

    r1120 r1162  
    88from unittest import TestCase 
    99from datetime import datetime 
    10 from StringIO import StringIO 
    1110from vcpx.svn import changesets_from_svnlog 
    1211 
  • vcpx/monotone.py

    r1113 r1162  
    1313__docformat__ = 'reStructuredText' 
    1414 
    15 from shwrap import ExternalCommand, PIPE, ReopenableNamedTemporaryFile, STDOUT 
     15from shwrap import ExternalCommand, PIPE, ReopenableNamedTemporaryFile 
    1616from source import UpdatableSourceWorkingDir, InvocationError, \ 
    1717     ChangesetApplicationFailure, GetUpstreamChangesetsFailure 
    1818from target import SynchronizableTargetWorkingDir, TargetInitializationFailure 
    19 from changes import ChangesetEntry,Changeset 
    20 from os.path import exists, join, isdir, split 
    21 from os import renames, access, F_OK 
     19from changes import Changeset 
     20from os.path import exists, join, isdir 
    2221from string import whitespace 
    23  
    24 try: 
    25   set 
    26 except NameError:  
    27   from sets import Set as set 
    2822 
    2923MONOTONERC = """\ 
  • vcpx/cdv.py

    r1113 r1162  
    106106 
    107107        from os import getenv 
    108         from os.path import join 
    109108 
    110109        cmd = self.repository.command("set", "user") 
  • vcpx/tests/config.py

    r1117 r1162  
    77 
    88from unittest import TestCase 
    9 from cStringIO import StringIO 
    109from vcpx.config import Config, ConfigurationError 
    1110from vcpx.project import Project 
  • vcpx/repository.py

    r1159 r1162  
    7878        """ 
    7979 
    80         from os.path import split, expanduser 
     80        from os.path import expanduser 
    8181        from locale import getpreferredencoding 
    8282 
  • vcpx/arx.py

    r1113 r1162  
    1313__docformat__ = 'reStructuredText' 
    1414 
    15 from shwrap import ExternalCommand, ReopenableNamedTemporaryFile 
     15from shwrap import ExternalCommand 
    1616from target import SynchronizableTargetWorkingDir, TargetInitializationFailure 
    1717from source import ChangesetApplicationFailure 
     
    3333        Commit the changeset. 
    3434        """ 
    35  
    36         from time import mktime 
    3735 
    3836        encode = self.repository.encode 
     
    8381 
    8482        from os.path import exists, join 
    85         from dircache import listdir 
    86         from dualwd import IGNORED_METADIRS 
    87         from os import walk 
    8883 
    8984        if not exists(join(self.basedir, '_arx')): 
  • vcpx/tests/tailor.py

    r1160 r1162  
    312312        "Test basic configuration" 
    313313 
    314         from os.path import expanduser 
    315  
    316314        p = Tailorizer('darcs2svn', self.config) 
    317315        self.assertEqual(p.source.subdir, 'darcside') 
  • vcpx/tla.py

    r1064 r1162  
    3939 
    4040import os 
    41 import re 
    4241from datetime import datetime 
    4342from time import strptime 
    4443from tempfile import mkdtemp 
    45 from cStringIO import StringIO 
    4644from email.Parser import Parser 
    47 from email.Errors import MessageParseError 
    4845 
    4946from changes import Changeset 
    5047from shwrap import ExternalCommand, PIPE 
    5148from source import UpdatableSourceWorkingDir, ChangesetApplicationFailure, \ 
    52      GetUpstreamChangesetsFailure, InvocationError 
     49     GetUpstreamChangesetsFailure 
    5350from target import TargetInitializationFailure 
    5451 
  • vcpx/tests/statefile.py

    r909 r1162  
    77 
    88from unittest import TestCase 
    9 from cStringIO import StringIO 
    109from vcpx.statefile import StateFile 
    1110from vcpx.shwrap import ReopenableNamedTemporaryFile 
  • vcpx/bzr.py

    r1152 r1162  
    1515__docformat__ = 'reStructuredText' 
    1616 
    17 import os 
    1817from workdir import WorkingDir 
    1918from source import UpdatableSourceWorkingDir, ChangesetApplicationFailure 
    20 from target import SynchronizableTargetWorkingDir, TargetInitializationFailure 
     19from target import SynchronizableTargetWorkingDir 
    2120from bzrlib.bzrdir import BzrDir 
    2221from bzrlib.delta import compare_trees 
     
    256255        trees). 
    257256        """ 
    258         from os.path import join, exists, split 
     257        from os.path import join, split 
    259258        from bzrlib import IGNORE_FILENAME 
    260259 
  • vcpx/cg.py

    r1113 r1162  
    1212__docformat__ = 'reStructuredText' 
    1313 
    14 from shwrap import ExternalCommand, ReopenableNamedTemporaryFile 
     14from shwrap import ExternalCommand 
    1515from target import SynchronizableTargetWorkingDir, TargetInitializationFailure 
    1616from source import ChangesetApplicationFailure 
     
    5959        """ 
    6060 
    61         from time import mktime 
    6261        from os import environ 
    6362 
     
    157156 
    158157        from os.path import join 
    159         from re import escape 
    160158        from dualwd import IGNORED_METADIRS 
    161159 
  • vcpx/git.py

    r1141 r1162  
    1313__docformat__ = 'reStructuredText' 
    1414 
    15 from shwrap import ExternalCommand, ReopenableNamedTemporaryFile, PIPE 
     15from shwrap import ExternalCommand, PIPE 
    1616from source import UpdatableSourceWorkingDir, GetUpstreamChangesetsFailure 
    1717from source import ChangesetApplicationFailure 
     
    203203        """ 
    204204 
    205         from time import mktime 
    206205        from os import environ 
    207206 
     
    320319        from os.path import join, exists 
    321320        from os import mkdir 
    322         from re import escape 
    323321        from dualwd import IGNORED_METADIRS 
    324322 
  • vcpx/hg.py

    r1157 r1162  
    1515 
    1616from source import UpdatableSourceWorkingDir 
    17 from target import SynchronizableTargetWorkingDir, TargetInitializationFailure 
     17from target import SynchronizableTargetWorkingDir 
    1818from mercurial import ui, hg, commands 
    1919 
     
    375375        to subdir. 
    376376        """ 
    377         from os.path import join, split, isdir 
     377        from os.path import join, split 
    378378 
    379379        files = [] 
Note: See TracChangeset for help on using the changeset viewer.