Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(158)

Unified Diff: python/musicexp.py

Issue 561060043: python: replace <> with !=
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « python/convertrules.py ('k') | python/musicxml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: python/musicexp.py
diff --git a/python/musicexp.py b/python/musicexp.py
index c29b11b1543befc0aa6ea9fc843a336f519f0ca3..6064ffa5eea3838329340382bd47984505e8c0c0 100644
--- a/python/musicexp.py
+++ b/python/musicexp.py
@@ -173,8 +173,8 @@ class Duration:
dur_str = '%d' % (1 << self.duration_log)
dur_str += '.' * self.dots
- if factor <> Rational(1, 1):
- if factor.denominator() <> 1:
+ if factor != Rational(1, 1):
+ if factor.denominator() != 1:
dur_str += '*%d/%d' % (factor.numerator(), factor.denominator())
else:
dur_str += '*%d' % factor.numerator()
@@ -1077,7 +1077,7 @@ class BarLine (Music):
'heavy': "|", 'light-light': "||", 'light-heavy': "|.",
'heavy-light': ".|", 'heavy-heavy': ".|.", 'tick': "'",
'short': "'", 'none': "" }.get (self.type, None)
- if bar_symbol <> None:
+ if bar_symbol != None:
printer.dump ('\\bar "%s"' % bar_symbol)
else:
printer.dump ("|")
@@ -1432,9 +1432,9 @@ class FretEvent (MarkupEvent):
self.elements = []
def ly_expression (self):
val = ""
- if self.strings <> 6:
+ if self.strings != 6:
val += "w:%s;" % self.strings
- if self.frets <> 4:
+ if self.frets != 4:
val += "h:%s;" % self.frets
if self.barre and len (self.barre) >= 3:
val += "c:%s-%s-%s;" % (self.barre[0], self.barre[1], self.barre[2]+get_transpose("integer"))
« no previous file with comments | « python/convertrules.py ('k') | python/musicxml.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b