Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
1
Konular (issue)
1
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
4f4fcff8
Kaydet (Commit)
4f4fcff8
authored
Haz 09, 2011
tarafından
Ozan Çağlayan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
graph: only replace allowed characters which are -,+,_
üst
156935ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
graph.py
pisi/graph.py
+1
-2
No files found.
pisi/graph.py
Dosyayı görüntüle @
4f4fcff8
...
...
@@ -139,8 +139,7 @@ class Digraph(object):
def
id_str
(
self
,
u
):
# Graph format only accepts underscores as key values
# Sanitize the values. This is 2x faster than the old method.
return
''
.
join
([
ch
if
ch
not
in
'!"#$
%
&
\'
()*+,-./:;<=>?@[
\\
]^_`{|}~'
\
else
'_'
for
ch
in
u
])
return
u
.
replace
(
"-"
,
"_"
)
.
replace
(
"+"
,
"_"
)
def
write_graphviz
(
self
,
f
):
f
.
write
(
'digraph G {
\n
'
)
...
...
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