Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96ccdd4

Browse files
authored
🚧 Remove the click library
1 parenta50f822 commit96ccdd4

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

‎rethinkdb/cli/_import.py‎

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
"""
2121
Import loads data into a RethinkDB cluster.
2222
"""
23-
24-
importclick
2523
importcodecs
2624
importcollections
2725
importcsv
@@ -1718,14 +1716,7 @@ def parse_info_file(path):
17181716
returnsources
17191717

17201718

1721-
@click.command
1722-
defcmd_import():
1723-
"""
1724-
Import loads data into a RethinkDB cluster.
1725-
"""
1726-
click.echo("import command")
1727-
argv= []
1728-
prog= []
1719+
defmain(argv=None,prog=None):
17291720
start_time=time.time()
17301721

17311722
ifargvisNone:
@@ -1741,5 +1732,9 @@ def cmd_import():
17411732
return2
17421733
return1
17431734
ifnotoptions.quiet:
1744-
print(f" Done ({time.time()-start_time} seconds)")
1735+
print(" Done (%d seconds)"% (time.time()-start_time))
17451736
return0
1737+
1738+
1739+
if__name__=="__main__":
1740+
sys.exit(main())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp