Browse Source

Restoring authorship annotation for <nalpp@yandex-team.ru>. Commit 2 of 2.

nalpp 3 years ago
parent
commit
30d1ef3941

+ 9 - 9
build/external_resources/codenavigation/ya.make

@@ -1,14 +1,14 @@
 OWNER(g:yatool)
- 
-RESOURCES_LIBRARY() 
- 
+
+RESOURCES_LIBRARY()
+
 NO_CODENAVIGATION()
-NO_RUNTIME() 
- 
-IF (OS_LINUX) 
+NO_RUNTIME()
+
+IF (OS_LINUX)
     DECLARE_EXTERNAL_RESOURCE(CPPYNDEXER sbr:2218884955)
     DECLARE_EXTERNAL_RESOURCE(PYNDEXER sbr:2112287762)
     DECLARE_EXTERNAL_RESOURCE(PY3YNDEXER sbr:2670411952)
-ENDIF() 
- 
-END() 
+ENDIF()
+
+END()

+ 1 - 1
build/platform/clang/ya.make

@@ -1,4 +1,4 @@
-RESOURCES_LIBRARY() 
+RESOURCES_LIBRARY()
 
 LICENSE(BSD-3-Clause)
 

+ 1 - 1
build/platform/lld/ya.make

@@ -1,4 +1,4 @@
-RESOURCES_LIBRARY() 
+RESOURCES_LIBRARY()
 
 LICENSE(Service-Prebuilt-Tool)
 

+ 21 - 21
build/plugins/_common.py

@@ -1,4 +1,4 @@
-import sys 
+import sys
 import hashlib
 import base64
 
@@ -165,26 +165,26 @@ def skip_build_root(x):
     return x
 
 
-def get_interpreter_path(): 
-    interpreter_path = [sys.executable] 
-    if 'ymake' in interpreter_path[0]: 
-        interpreter_path.append('--python') 
-    return interpreter_path 
- 
- 
-def filter_out_by_keyword(test_data, keyword): 
-    def _iterate(): 
-        i = 0 
-        while i < len(test_data): 
-            if test_data[i] == keyword: 
-                i += 2 
-            else: 
-                yield test_data[i] 
-                i += 1 
- 
-    return list(_iterate()) 
- 
- 
+def get_interpreter_path():
+    interpreter_path = [sys.executable]
+    if 'ymake' in interpreter_path[0]:
+        interpreter_path.append('--python')
+    return interpreter_path
+
+
+def filter_out_by_keyword(test_data, keyword):
+    def _iterate():
+        i = 0
+        while i < len(test_data):
+            if test_data[i] == keyword:
+                i += 2
+            else:
+                yield test_data[i]
+                i += 1
+
+    return list(_iterate())
+
+
 def generate_chunks(lst, chunk_size):
     for i in xrange(0, len(lst), chunk_size):
         yield lst[i:(i + chunk_size)]

+ 1 - 1
build/plugins/_custom_command.py

@@ -61,5 +61,5 @@ def addrule(*unused):
     pass
 
 
-def addparser(*unused, **kwargs): 
+def addparser(*unused, **kwargs):
     pass

+ 2 - 2
build/plugins/_unpickler.py

@@ -9,9 +9,9 @@ try:
 except Exception:
     import pickle
 
-import _common as common 
+import _common as common
+
 
- 
 def main():
     parser = argparse.ArgumentParser()
     parser.add_argument('--data', help='pickled object of TCustomCommand class', required=True)

+ 3 - 3
build/plugins/java.py

@@ -39,10 +39,10 @@ def on_run_jbuild_program(unit, *args):
     """
 
     flat, kv = common.sort_by_keywords({'IN': -1, 'IN_DIR': -1, 'OUT': -1, 'OUT_DIR': -1, 'CWD': 1, 'CLASSPATH': -1, 'CP_USE_COMMAND_FILE': 1, 'ADD_SRCS_TO_CLASSPATH': 0}, args)
-    depends = kv.get('CLASSPATH', []) + kv.get('JAR', []) 
+    depends = kv.get('CLASSPATH', []) + kv.get('JAR', [])
     fake_out = None
-    if depends: 
-        # XXX: hack to force ymake to build dependencies 
+    if depends:
+        # XXX: hack to force ymake to build dependencies
         fake_out = "fake.out.{}".format(hash(tuple(args)))
         unit.on_run_java(['TOOL'] + depends + ["OUT", fake_out])
 

+ 6 - 6
build/plugins/macros_with_error.py

@@ -1,13 +1,13 @@
-import sys 
- 
+import sys
+
 import _common
- 
+
 import ymake
 
 
-def onmacros_with_error(unit, *args): 
-    print >> sys.stderr, 'This macros will fail' 
-    raise Exception('Expected fail in MACROS_WITH_ERROR') 
+def onmacros_with_error(unit, *args):
+    print >> sys.stderr, 'This macros will fail'
+    raise Exception('Expected fail in MACROS_WITH_ERROR')
 
 
 def onrestrict_path(unit, *args):

+ 1 - 1
build/plugins/res.py

@@ -1,4 +1,4 @@
-from _common import iterpair, listid, pathid, rootrel_arc_src, tobuilddir, filter_out_by_keyword 
+from _common import iterpair, listid, pathid, rootrel_arc_src, tobuilddir, filter_out_by_keyword
 
 
 def split(lst, limit):

+ 5 - 5
build/plugins/scarab_cant_clash.py

@@ -17,10 +17,10 @@ def onacceleo(unit, *args):
     classpath = ['$SCARAB', ]  # XXX special word for ya make to replace following paths with real classpath
     classpath.append('tools/acceleo')
 
-    depends = [] 
+    depends = []
     if not unit.get('IDE_MSVS_CALL'):
         for jar in classpath[1:]:
-            depends.append(jar) 
+            depends.append(jar)
 
     classpath = ':'.join(classpath)
 
@@ -60,7 +60,7 @@ def onacceleo(unit, *args):
         if kv.get(k):
             run_java += [k] + kv[k]
 
-    if depends: 
-        run_java += ['TOOL'] + depends 
- 
+    if depends:
+        run_java += ['TOOL'] + depends
+
     unit.on_run_java(run_java)

Some files were not shown because too many files changed in this diff