This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for repo in repos: | |
if foo(repo): | |
yield repo | |
elif bar(repo): | |
yield repo | |
elif baz(repo): | |
yield repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here's a Q&D patch - it needs to be integrated w/ pymarc's test system, and maybe made optional in case EACC is ever extended to have chars in the 0x7Bxxxx range. | |
See https://groups.google.com/forum/?fromgroups#!topic/pymarc/z1xe1id1GTw | |
@@ -1,3 +1,4 @@ | |
+# -*- coding: utf-8 -*- | |
# see http://www.loc.gov/marc/specifications/speccharmarc8.html | |
"pymarc marc8.py file." | |
@@ -55,6 +56,11 @@ class MARC8ToUnicode: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import marc8_mapping | |
>>> for k in marc8_mapping.CHARSET_31: | |
... if k & 0xFF0000 == 0x7B0000: | |
... print k | |
returns nothhing |