Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
git-repo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux-tools
git-repo
Commits
21987131
Commit
21987131
authored
Mar 18, 2013
by
Matthias Putz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added portable pager tests
parent
7ab10cce
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
124 additions
and
90 deletions
+124
-90
workspace.xml
.idea/workspace.xml
+105
-86
main.py
main.py
+1
-1
__init__.py
tests/__init__.py
+0
-0
portable-pager.py
tests/portable-pager.py
+18
-3
No files found.
.idea/workspace.xml
View file @
21987131
This diff is collapsed.
Click to expand it.
main.py
View file @
21987131
...
...
@@ -291,7 +291,7 @@ def _AddPasswordFromUserInput(handler, msg, req):
if
user
is
None
:
print
(
msg
)
try
:
user
=
raw_
input
(
'User: '
)
user
=
input
(
'User: '
)
password
=
getpass
.
getpass
()
except
KeyboardInterrupt
:
return
...
...
tests/__init__.py
0 → 100644
View file @
21987131
tests/portable-pager.py
View file @
21987131
...
...
@@ -54,6 +54,21 @@ def _BecomePager(pager):
if
__name__
==
'__main__'
:
RunPager
()
for
i
in
range
(
0
,
100
):
print
(
"
%
d"
%
i
)
\ No newline at end of file
if
len
(
sys
.
argv
)
==
1
:
print
(
'run pager'
)
import
subprocess
import
platform
#subprocess.call(["python3.3", "portable-pager.py", "1", "| less"])
if
platform
.
system
()
!=
"Windows"
:
python
=
"python3.3"
else
:
python
=
"python"
os
.
system
(
"
%
s portable-pager.py 1 | less"
%
python
)
#RunPager()
else
:
print
(
'output data'
)
for
i
in
range
(
0
,
100
):
print
(
"
%
d"
%
i
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment