Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(600)

Unified Diff: dfvfs/vfs/lvm_file_system.py

Issue 335570043: [dfvfs] Moved resolver helpers to reduce cyclic imports (Closed)
Patch Set: Moved resolver helpers to reduce cyclic imports Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dfvfs/vfs/cpio_file_system.py ('k') | dfvfs/vfs/ntfs_file_system.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dfvfs/vfs/lvm_file_system.py
diff --git a/dfvfs/vfs/lvm_file_system.py b/dfvfs/vfs/lvm_file_system.py
index 049b7f02bf3f25f83c3aced173410173d576dee1..821f7e84426c438dfe920696427194d52bcf3fb3 100644
--- a/dfvfs/vfs/lvm_file_system.py
+++ b/dfvfs/vfs/lvm_file_system.py
@@ -5,15 +5,13 @@ from __future__ import unicode_literals
import pyvslvm
-# This is necessary to prevent a circular import.
-import dfvfs.vfs.lvm_file_entry
-
from dfvfs.lib import definitions
from dfvfs.lib import errors
from dfvfs.lib import lvm
from dfvfs.path import lvm_path_spec
from dfvfs.resolver import resolver
from dfvfs.vfs import file_system
+from dfvfs.vfs import lvm_file_entry
class LVMFileSystem(file_system.FileSystem):
@@ -117,14 +115,14 @@ class LVMFileSystem(file_system.FileSystem):
location = getattr(path_spec, 'location', None)
if location is None or location != self.LOCATION_ROOT:
return
- return dfvfs.vfs.lvm_file_entry.LVMFileEntry(
+ return lvm_file_entry.LVMFileEntry(
self._resolver_context, self, path_spec, is_root=True,
is_virtual=True)
if (volume_index < 0 or
volume_index >= self._vslvm_volume_group.number_of_logical_volumes):
return
- return dfvfs.vfs.lvm_file_entry.LVMFileEntry(
+ return lvm_file_entry.LVMFileEntry(
self._resolver_context, self, path_spec)
def GetLVMLogicalVolumeByPathSpec(self, path_spec):
« no previous file with comments | « dfvfs/vfs/cpio_file_system.py ('k') | dfvfs/vfs/ntfs_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b