[Git][reproducible-builds/diffoscope][master] fix typo in comment

Mattia Rizzolo (@mattia) gitlab at salsa.debian.org
Thu Aug 31 15:56:47 UTC 2023



Mattia Rizzolo pushed to branch master at Reproducible Builds / diffoscope


Commits:
8ee4e4ef by Mattia Rizzolo at 2023-08-31T21:26:31+05:30
fix typo in comment

also mentions that this is an optimization, so people should not need to call this method

Gbp-Dch: Ignore
Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- diffoscope/comparators/utils/specialize.py


Changes:

=====================================
diffoscope/comparators/utils/specialize.py
=====================================
@@ -49,11 +49,13 @@ def specialize_as(cls, file):
     """
     Sometimes it is near-certain that files within a Container with a given
     extension (say) are of a known File type. We therefore do not need to run
-    libmagic on these files, especially in cases where the Container contains
-    hundreds of similar/smal files. (This can be seeen in the case of apktool
-    and .smali files). In this case, this method can be used to essentially
-    fix/force the type. Care should naturally be taken within Container
-    implementations; such as checking the file extension and so forth.
+    libmagic on these files. Using this facily within a Container can be an
+    optimization, especially in cases where the Container contains hundreds of
+    similar/small files. (This can be seen in the case of apktool and .smali
+    files). In this case, this method can be used to essentially fix/force the
+    type.
+    Care should naturally be taken within Container implementations; such as
+    checking the file extension and so forth.
     """
 
     new_cls = type(cls.__name__, (cls, type(file)), {})



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/8ee4e4efa1a3b6e0b49450a8dd5121407fe8c754

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/8ee4e4efa1a3b6e0b49450a8dd5121407fe8c754
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20230831/2c2502be/attachment.htm>


More information about the rb-commits mailing list