summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-19 15:26:40 +0800
committerOpportunity <[email protected]>2020-01-19 15:26:40 +0800
commit5fee0758ddbe7ee37122e9eab5776b18c49af226 (patch)
treee1bc762b2590ff8fe7a5cd622003690e372c611c
parent69ed0bdc01636c5ac093b6828c774285e3f72bbf (diff)
remove bytes form default import
-rw-r--r--xmake/core/base/bytes.lua4
-rw-r--r--xmake/core/sandbox/modules/import/core/base/bytes.lua (renamed from xmake/core/sandbox/modules/bytes.lua)2
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/base/bytes.lua b/xmake/core/base/bytes.lua
index 0a906fcbf..76579ab0f 100644
--- a/xmake/core/base/bytes.lua
+++ b/xmake/core/base/bytes.lua
@@ -442,8 +442,8 @@ end
-- register call function
setmetatable(bytes, {
- __call = function (_, ...)
- return bytes.new(...)
+ __call = function (_, ...)
+ return bytes.new(...)
end,
__todisplay = function()
return todisplay(bytes.new)
diff --git a/xmake/core/sandbox/modules/bytes.lua b/xmake/core/sandbox/modules/import/core/base/bytes.lua
index 261829e92..edee99365 100644
--- a/xmake/core/sandbox/modules/bytes.lua
+++ b/xmake/core/sandbox/modules/import/core/base/bytes.lua
@@ -11,7 +11,7 @@
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
---
+--
-- Copyright (C) 2015-2020, TBOOX Open Source Group.
--
-- @author ruki