fix typo error, variable should be named beginning_size
authorEduardo Robles Elvira <edulix@wadobo.com>
Wed, 19 Mar 2014 16:50:18 +0000 (17:50 +0100)
committerEduardo Robles Elvira <edulix@wadobo.com>
Wed, 19 Mar 2014 16:50:18 +0000 (17:50 +0100)
deltatar/deltatar.py

index 2c1ded7..fc7d518 100644 (file)
@@ -381,9 +381,9 @@ class DeltaTar(object):
         queue = [source_path]
 
         if strip_base_dir:
-            beginging_size = len(source_path)
+            beginning_size = len(source_path)
         else:
-            beginging_size = 0
+            beginning_size = 0
         while queue:
             cur_path = queue.pop(0)
 
@@ -396,7 +396,7 @@ class DeltaTar(object):
                 status = self.filter_path(child, source_path, is_dir)
 
                 if status == MATCH:
-                    yield child[beginging_size:]
+                    yield child[beginning_size:]
 
                 if is_dir and (status == MATCH or status == PARENT_MATCH):
                     queue.append(child)