Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sjrpc
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
sjrpc
Commits
8c63a804
Commit
8c63a804
authored
14 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
fix bad default string to unicode in list command and tagdisplay func
parent
9947820e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cccli/command/list.py
+1
-1
1 addition, 1 deletion
cccli/command/list.py
cccli/tagdisplay.py
+1
-1
1 addition, 1 deletion
cccli/tagdisplay.py
with
2 additions
and
2 deletions
cccli/command/list.py
+
1
−
1
View file @
8c63a804
...
@@ -54,7 +54,7 @@ class Command_list(TqlCommand):
...
@@ -54,7 +54,7 @@ class Command_list(TqlCommand):
line
+=
"
%s%s:%s%s
"
%
(
self
.
tdtc
(
t
),
line
+=
"
%s%s:%s%s
"
%
(
self
.
tdtc
(
t
),
t
,
t
,
self
.
tdc
(
t
),
self
.
tdc
(
t
),
self
.
tdr
(
t
,
o
.
get
(
t
,
""
)).
ljust
(
tags
[
t
]))
self
.
tdr
(
t
,
o
.
get
(
t
,
u
""
)).
ljust
(
tags
[
t
]))
self
.
printer
.
out
(
"
%s%s
"
%
(
line
,
color
[
"
reset
"
]))
self
.
printer
.
out
(
"
%s%s
"
%
(
line
,
color
[
"
reset
"
]))
def
list_table
(
self
,
objs
):
def
list_table
(
self
,
objs
):
...
...
This diff is collapsed.
Click to expand it.
cccli/tagdisplay.py
+
1
−
1
View file @
8c63a804
...
@@ -86,7 +86,7 @@ class TagDisplay(object):
...
@@ -86,7 +86,7 @@ class TagDisplay(object):
# check general options
# check general options
if
bool
(
self
.
option
.
get
(
"
quotespace
"
,
False
)):
if
bool
(
self
.
option
.
get
(
"
quotespace
"
,
False
)):
if
re
.
search
(
"
\s
"
,
tagvalue
)
is
not
None
:
if
re
.
search
(
"
\s
"
,
tagvalue
)
is
not
None
:
tagvalue
=
"'
%s
'"
%
re
.
sub
(
"'"
,
"
\'
"
,
tagvalue
)
tagvalue
=
u
"'
%s
'"
%
re
.
sub
(
"'"
,
"
\'
"
,
tagvalue
)
# build list of matching pattern with tagname
# build list of matching pattern with tagname
l
=
[
x
for
x
in
self
.
tagtype
if
fnmatch
.
fnmatch
(
tagname
,
x
)
]
l
=
[
x
for
x
in
self
.
tagtype
if
fnmatch
.
fnmatch
(
tagname
,
x
)
]
if
len
(
l
)
>
0
:
if
len
(
l
)
>
0
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment