mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 06:37:17 +00:00
Changed references to what has already been moved from hsutil to hscommon (io, path, testutil).
This commit is contained in:
@@ -13,10 +13,11 @@ import subprocess
|
||||
import re
|
||||
|
||||
from send2trash import send2trash
|
||||
from hscommon import io
|
||||
from hscommon.reg import RegistrableApplication
|
||||
from hscommon.notify import Broadcaster
|
||||
from hsutil import io, files
|
||||
from hsutil.path import Path
|
||||
from hscommon.path import Path
|
||||
from hsutil import files
|
||||
from hsutil.misc import flatten, first
|
||||
from hsutil.str import escape
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
|
||||
from xml.etree import ElementTree as ET
|
||||
|
||||
from hsutil import io
|
||||
from hscommon import io
|
||||
from hscommon.path import Path
|
||||
from hsutil.files import FileOrPath
|
||||
from hsutil.path import Path
|
||||
|
||||
from . import fs
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Created By: Virgil Dupras
|
||||
# Created On: 2009-10-22
|
||||
# Copyright 2010 Hardcoded Software (http://www.hardcoded.net)
|
||||
@@ -12,12 +11,10 @@
|
||||
# resulting needless complexity and memory usage. It's been a while since I wanted to do that fork,
|
||||
# and I'm doing it now.
|
||||
|
||||
|
||||
|
||||
import hashlib
|
||||
import logging
|
||||
|
||||
from hsutil import io
|
||||
from hscommon import io
|
||||
from hsutil.misc import nonone, flatten
|
||||
from hsutil.str import get_file_ext
|
||||
|
||||
@@ -52,7 +49,7 @@ class OperationError(FSError):
|
||||
operation shows that it didn't work."""
|
||||
cls_message = "Operation on '{name}' failed."
|
||||
|
||||
class File(object):
|
||||
class File:
|
||||
INITIAL_INFO = {
|
||||
'size': 0,
|
||||
'mtime': 0,
|
||||
|
||||
@@ -10,7 +10,7 @@ import logging
|
||||
import re
|
||||
|
||||
from jobprogress import job
|
||||
from hsutil import io
|
||||
from hscommon import io
|
||||
from hsutil.misc import dedupe
|
||||
from hsutil.str import get_file_ext, rem_file_ext
|
||||
|
||||
@@ -37,7 +37,7 @@ def is_same_with_digit(name, refname):
|
||||
end = name[len(refname):].strip()
|
||||
return RE_DIGIT_ENDING.match(end) is not None
|
||||
|
||||
class Scanner(object):
|
||||
class Scanner:
|
||||
def __init__(self):
|
||||
self.ignore_list = IgnoreList()
|
||||
self.discarded_file_count = 0
|
||||
|
||||
@@ -11,8 +11,8 @@ import os.path as op
|
||||
import logging
|
||||
|
||||
from pytest import mark
|
||||
from hsutil import io
|
||||
from hsutil.path import Path
|
||||
from hscommon import io
|
||||
from hscommon.path import Path
|
||||
from hsutil.decorators import log_calls
|
||||
import hsutil.files
|
||||
from hscommon.testutil import CallLogger, eq_
|
||||
|
||||
@@ -12,8 +12,8 @@ import tempfile
|
||||
import shutil
|
||||
|
||||
from pytest import raises
|
||||
from hsutil import io
|
||||
from hsutil.path import Path
|
||||
from hscommon import io
|
||||
from hscommon.path import Path
|
||||
from hscommon.testutil import eq_
|
||||
|
||||
from ..directories import *
|
||||
|
||||
@@ -11,7 +11,7 @@ import sys
|
||||
from jobprogress import job
|
||||
from hsutil.decorators import log_calls
|
||||
from hsutil.misc import first
|
||||
from hsutil.testutil import eq_
|
||||
from hscommon.testutil import eq_
|
||||
|
||||
from .. import engine
|
||||
from ..engine import *
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
import io
|
||||
from xml.etree import ElementTree as ET
|
||||
|
||||
from hsutil.testutil import eq_
|
||||
from hscommon.testutil import eq_
|
||||
|
||||
from ..ignore import *
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import os.path as op
|
||||
|
||||
from xml.etree import ElementTree as ET
|
||||
|
||||
from hsutil.path import Path
|
||||
from hscommon.path import Path
|
||||
from hscommon.testutil import eq_
|
||||
from hsutil.misc import first
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
# http://www.hardcoded.net/licenses/bsd_license
|
||||
|
||||
from jobprogress import job
|
||||
from hsutil import io
|
||||
from hsutil.path import Path
|
||||
from hscommon import io
|
||||
from hscommon.path import Path
|
||||
from hscommon.testutil import eq_
|
||||
|
||||
from .. import fs
|
||||
|
||||
Reference in New Issue
Block a user