Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: client/libs/ar/__init__.py

Issue 2049523004: luci-py: Tools for working with BSD style ar archives. (Closed) Base URL: https://github.com/luci/luci-py.git@master
Patch Set: Fixing for Maruel's review. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/artool ('k') | client/libs/ar/cli.py » ('j') | client/libs/ar/cli.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/libs/ar/__init__.py
diff --git a/client/libs/ar/__init__.py b/client/libs/ar/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..6c1bd1b9a86371c940633f580e95dcc3cf421c36
--- /dev/null
+++ b/client/libs/ar/__init__.py
@@ -0,0 +1,22 @@
+# Copyright 2016 The LUCI Authors. All rights reserved.
+# Use of this source code is governed under the Apache License, Version 2.0
+# that can be found in the LICENSE file.
+
+"""
+Implements access to ar archives. ar is probably the simplest format that
+standard tools under Linux support.
+
+The base ar format only supports files which are 16 characters long. There
+are multiple methods for supporting longer file names.
+
+This package only supports the "BSD variant" as the filename is stored allow
+"streaming" support (rather than the Sys V / GNU variant which requires
+building a symbol table).
+
+References:
+* https://en.wikipedia.org/wiki/Ar_(Unix)
+"""
+
+from .reader import ArDefaultReader
+from .writer import ArWriter, ArDefaultWriter
+__all__ = ['ArDefaultReader', 'ArWriter', 'ArDefaultWriter']
M-A Ruel 2016/06/14 13:26:16 Ar prefix is not really needed. I don't think we n
mithro 2016/06/16 11:37:11 This duplication is pretty normal in Python (IE ta
« no previous file with comments | « client/artool ('k') | client/libs/ar/cli.py » ('j') | client/libs/ar/cli.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698