forked from mozilla/moz-sql-parser
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dcf057b
commit 0a08be2
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# encoding: utf-8 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
# You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Author: Kyle Lahnakoski ([email protected]) | ||
# | ||
from time import time | ||
import mo_imports | ||
|
||
# ensure first import is fast | ||
start_import = time() | ||
from mo_sql_parsing import format | ||
end_time = time() | ||
print(format({"from":"a"})) | ||
for e in mo_imports._expectations: | ||
print((object.__getattribute__(e, "module"), object.__getattribute__(e, "name"))) | ||
|
||
if mo_imports._monitor: | ||
raise Exception("mo_imports._monitor should not be alive") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters