10
10
from backrefs import bre
11
11
from backrefs import bregex
12
12
from rummage .lib import rumcore as rc
13
- from rummage .lib .rumcore import epoch_timestamp as epoch
14
13
from rummage .lib .rumcore import text_decode as td
15
14
from wcmatch import wcmatch
16
15
from . import util
@@ -748,7 +747,7 @@ def test_time_modified_less(self):
748
747
r'*.*' , None ,
749
748
self .default_flags | wcmatch .RECURSIVE | wcmatch .HIDDEN ,
750
749
False , False ,
751
- None , ("lt" , epoch .local_time_to_epoch_timestamp (date , '00:00:00' )), None ,
750
+ None , ("lt" , rc . util .local_time_to_epoch_timestamp (date , '00:00:00' )), None ,
752
751
None , False
753
752
)
754
753
@@ -766,7 +765,7 @@ def test_time_modified_greater(self):
766
765
r'*.*' , None ,
767
766
self .default_flags | wcmatch .RECURSIVE | wcmatch .HIDDEN ,
768
767
False , False ,
769
- None , ("gt" , epoch .local_time_to_epoch_timestamp ('07/07/1980' , '00:00:00' )), None ,
768
+ None , ("gt" , rc . util .local_time_to_epoch_timestamp ('07/07/1980' , '00:00:00' )), None ,
770
769
None , False
771
770
)
772
771
@@ -787,7 +786,7 @@ def test_time_created_less(self):
787
786
r'*.*' , None ,
788
787
self .default_flags | wcmatch .RECURSIVE | wcmatch .HIDDEN ,
789
788
False , False ,
790
- None , None , ("lt" , epoch .local_time_to_epoch_timestamp (date , '00:00:00' )),
789
+ None , None , ("lt" , rc . util .local_time_to_epoch_timestamp (date , '00:00:00' )),
791
790
None , False
792
791
)
793
792
@@ -805,7 +804,7 @@ def test_time_created_greater(self):
805
804
r'*.*' , None ,
806
805
self .default_flags | wcmatch .RECURSIVE | wcmatch .HIDDEN ,
807
806
False , False ,
808
- None , None , ("gt" , epoch .local_time_to_epoch_timestamp ('07/07/1980' , '00:00:00' )),
807
+ None , None , ("gt" , rc . util .local_time_to_epoch_timestamp ('07/07/1980' , '00:00:00' )),
809
808
None , False
810
809
)
811
810
@@ -885,7 +884,7 @@ def get_file_attr(self, *path):
885
884
"""Get the file attributes."""
886
885
887
886
name = self .norm (* path )
888
- c_time , m_time = rc .get_stat (name )[:2 ]
887
+ c_time , m_time = rc .util . get_stat (name )[:2 ]
889
888
return rc .FileAttrRecord (
890
889
name ,
891
890
os .path .splitext (name )[1 ].lower ().lstrip ('.' ),
0 commit comments