diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/striplog/utils.py b/striplog/utils.py index <HASH>..<HASH> 100644 --- a/striplog/utils.py +++ b/striplog/utils.py @@ -16,19 +16,22 @@ class CustomFormatter(Formatter): def __init__(self): super(CustomFormatter, self).__init__() - self.last_index = 0 - def get_value(self, key, ar...
cope with missing fields in fmt
py
diff --git a/tests/test_io.py b/tests/test_io.py index <HASH>..<HASH> 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -223,3 +223,16 @@ def test_save_bytesio(resources, outpdf): assert bio_value != b'' pdf.save(outpdf, static_id=True) assert outpdf.read_bytes() == bio_value + + +def t...
tests: confirm we can handle permissions errors By proxy this covers other errors that have to do with opening the destination file.
py
diff --git a/openquake/calculators/views.py b/openquake/calculators/views.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/views.py +++ b/openquake/calculators/views.py @@ -387,14 +387,20 @@ def view_totlosses(token, dstore): return rst_table(tot_losses.view(oq.loss_dt()), fmt='%.6E') -# for event ba...
Extended the portfolio_losses view to ebrisk [skip CI] Former-commit-id: <I>fa6fd<I>e6ac<I>fc9dbd4b<I>eb5efd6c<I>e
py
diff --git a/test/integration/failover_script.py b/test/integration/failover_script.py index <HASH>..<HASH> 100755 --- a/test/integration/failover_script.py +++ b/test/integration/failover_script.py @@ -7,7 +7,7 @@ up_file = "failover_test_elb_up" down_file = "failover_test_elb_down" def test(opts, server, repli_se...
(uhm, commited a wrong comment in the test script)
py
diff --git a/bakery/management/commands/publish.py b/bakery/management/commands/publish.py index <HASH>..<HASH> 100644 --- a/bakery/management/commands/publish.py +++ b/bakery/management/commands/publish.py @@ -89,12 +89,12 @@ in settings.py or provide it with --aws-bucket-name" # Execute the command ...
adding in XML files to the default gzip s3cmd include
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,7 @@ setup( 'file-contents-sorter = pre_commit_hooks.file_contents_sorter:main', 'fix-encoding-pragma = pre_commit_hooks.fix_encoding_pragma:main', 'forbid-new-submodules = pre_...
Fix mixed-line-endings entrypoint
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ with open(readme_path, 'r', encoding='utf-8') as fh: def main(): - install_list = ['pysb>=1.3.0', 'objectpath', 'rdflib', + install_list = ['pysb>=1.3.0,<=1.9.1', 'objectpath', 'rdflib', ...
Add upper constraint on PySB version
py
diff --git a/utils/bugzilla2el.py b/utils/bugzilla2el.py index <HASH>..<HASH> 100755 --- a/utils/bugzilla2el.py +++ b/utils/bugzilla2el.py @@ -59,6 +59,8 @@ def parse_args(): help="Number of XML issues to get per query") parser.add_argument("--cache", action='store_true', ...
Added option --debug to increase logging.
py
diff --git a/worker/step_runner.py b/worker/step_runner.py index <HASH>..<HASH> 100755 --- a/worker/step_runner.py +++ b/worker/step_runner.py @@ -339,7 +339,7 @@ class StepRunner: if self.settings.get('WORKER_LOGFILE') is None: return logging.StreamHandler() else: - if not os....
Fixed bug in merging step_runner.py.
py
diff --git a/pydot.py b/pydot.py index <HASH>..<HASH> 100644 --- a/pydot.py +++ b/pydot.py @@ -1841,9 +1841,10 @@ class Dot(Graph): stderr=subprocess.PIPE, stdout=subprocess.PIPE) except OSError as e: if e.errno == os.errno.ENOENT: - raise Exception( - ...
API: raise `OSError` when a GraphViz executable is not found Python 3 instantiates a subclass of `OSError` that is more specific to the kind of error raised [1]. By raising an error more specific than `Exception`, it can be recognized by packages that use `pydot`. [1] <URL>
py
diff --git a/pygelf/gelf.py b/pygelf/gelf.py index <HASH>..<HASH> 100644 --- a/pygelf/gelf.py +++ b/pygelf/gelf.py @@ -38,7 +38,7 @@ def make(record, domain, debug, version, additional_fields, include_extra_fields 'host': domain } - if record.exc_info is not None: + if record.exc_info: ge...
Handle exc_info that's false but not None Closes #<I>.
py
diff --git a/python/thunder/clustering/kmeans.py b/python/thunder/clustering/kmeans.py index <HASH>..<HASH> 100644 --- a/python/thunder/clustering/kmeans.py +++ b/python/thunder/clustering/kmeans.py @@ -2,7 +2,7 @@ Classes for KMeans clustering """ -from numpy import array, argmin, corrcoef, ndarray +from numpy imp...
Prevent NaNs for series with 0 std
py
diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/format.py +++ b/pylint/checkers/format.py @@ -1000,8 +1000,12 @@ class FormatChecker(BaseTokenChecker): # Don't count excess whitespace in the line length. line = stripp...
Modifying the way results of OPTION_RGX.search(line) are exploited
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -77,14 +77,14 @@ PKG_DESCRIBE = "DESCRIPTION.md" ## Directories to ignore in find_packages EXCLUDES = ( - "tests", + "tests", "tests.*", "bin", - "docs", + "docs", "docs.*", "fixtures", "register...
Do not install tests subpackages with pip (#<I>) The new module rules mean that directories without a __init__.py file can be found, which meant that the find_packages method was discovering tests subpackages. By adding the wildcard flag to excludes, we omit these packages from our builds and they will not be installe...
py
diff --git a/py3status/modules/backlight.py b/py3status/modules/backlight.py index <HASH>..<HASH> 100644 --- a/py3status/modules/backlight.py +++ b/py3status/modules/backlight.py @@ -96,8 +96,11 @@ class Py3status: return brightness * 100 // brightness_max def backlight(self): - level = self._get...
Added check for device presence in backlight.py
py
diff --git a/tests/test_symbolic_tester.py b/tests/test_symbolic_tester.py index <HASH>..<HASH> 100644 --- a/tests/test_symbolic_tester.py +++ b/tests/test_symbolic_tester.py @@ -53,5 +53,4 @@ def test_tester_magma_internal_signals_verilator(target, solver): kwargs["magma_opts"] = {"passes": ["rungenerator...
Revert to using tempdir for test
py
diff --git a/src/you_get/common.py b/src/you_get/common.py index <HASH>..<HASH> 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -916,7 +916,10 @@ def download_urls( return if dry_run: print_user_agent(faker=faker) - print('Real URLs:\n%s' % '\n'.join(urls)) + try: ...
[common] download_urls(): fix URL printing for DASH streams
py
diff --git a/src/chemcoord/cartesian_coordinates/_cartesian_class_get_zmat.py b/src/chemcoord/cartesian_coordinates/_cartesian_class_get_zmat.py index <HASH>..<HASH> 100644 --- a/src/chemcoord/cartesian_coordinates/_cartesian_class_get_zmat.py +++ b/src/chemcoord/cartesian_coordinates/_cartesian_class_get_zmat.py @@ -5...
MAINT: Removed forgotten debugging print statement
py
diff --git a/sc2/client.py b/sc2/client.py index <HASH>..<HASH> 100644 --- a/sc2/client.py +++ b/sc2/client.py @@ -169,15 +169,16 @@ class Client(Protocol): )) return [ActionResult(p.result) for p in result.query.placements] - async def query_available_abilities(self, unit): - assert isins...
Change query_available_abilities to allow multiple per call requests
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,7 @@ install_requires = [ 'djangosaml2>=0.11.0,<0.12', 'drf-extensions==0.2.6', 'logan==0.5.9.1', + 'ordereddict==1.1', 'python-cinderclient>=1.0.7,<=1.1.1', 'python-glanceclient>=0.12.0,<...
ordereddict added to requirements (itacloud-<I>)
py
diff --git a/green/djangorunner.py b/green/djangorunner.py index <HASH>..<HASH> 100644 --- a/green/djangorunner.py +++ b/green/djangorunner.py @@ -75,7 +75,7 @@ try: def __init__(self, verbose=1, **kwargs): - super ().__init__ () + super(DjangoRunner, self).__init__() sel...
[FIX] Fixed super() call for Python 2.x
py
diff --git a/lib/ansiblereview/version.py b/lib/ansiblereview/version.py index <HASH>..<HASH> 100644 --- a/lib/ansiblereview/version.py +++ b/lib/ansiblereview/version.py @@ -1 +1 @@ -__version__ = '0.4.1' +__version__ = '0.4.2'
Update version to <I> New version for removal of Fabric
py
diff --git a/pcef/panels/lines.py b/pcef/panels/lines.py index <HASH>..<HASH> 100644 --- a/pcef/panels/lines.py +++ b/pcef/panels/lines.py @@ -84,7 +84,6 @@ class LineNumberPanel(Panel): normal_font.setBold(False) bold_font = QFont(normal_font) bold_font.setBold(True) - bold_font.setIt...
Removes weird italic highlight (only bold is more than enough)
py
diff --git a/python/orca/src/bigdl/orca/common.py b/python/orca/src/bigdl/orca/common.py index <HASH>..<HASH> 100644 --- a/python/orca/src/bigdl/orca/common.py +++ b/python/orca/src/bigdl/orca/common.py @@ -120,6 +120,19 @@ class OrcaContextMeta(type): "shard size should be either None or a positive in...
Add support for non-barrier mode to launch ray (#<I>) * add support for non-barrier mode * fix style * meet review * meet review * move barrier mode to zoocontext * bug fix * modify * update
py
diff --git a/tests/dtypes_test.py b/tests/dtypes_test.py index <HASH>..<HASH> 100644 --- a/tests/dtypes_test.py +++ b/tests/dtypes_test.py @@ -102,7 +102,7 @@ class DtypesTest(jtu.JaxTestCase): op = jax.jit(operator.add) if jit else operator.add for x, y, dtype in testcases: x, y = (y, x) if swap else ...
fix binary promotion test (#<I>)
py
diff --git a/src/hamster/edit_activity.py b/src/hamster/edit_activity.py index <HASH>..<HASH> 100644 --- a/src/hamster/edit_activity.py +++ b/src/hamster/edit_activity.py @@ -104,6 +104,7 @@ class CustomFactController(gobject.GObject): # This signal should be emitted only after a manual modification, ...
update start_time from gui entry
py
diff --git a/pandas/tests/reshape/test_melt.py b/pandas/tests/reshape/test_melt.py index <HASH>..<HASH> 100644 --- a/pandas/tests/reshape/test_melt.py +++ b/pandas/tests/reshape/test_melt.py @@ -270,6 +270,16 @@ class TestMelt: expected.columns = ["klass", "col", "attribute", "value"] tm.assert_frame_...
add test for pd.melt dtypes preservation (#<I>)
py
diff --git a/holoviews/plotting/mpl/stats.py b/holoviews/plotting/mpl/stats.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/mpl/stats.py +++ b/holoviews/plotting/mpl/stats.py @@ -197,7 +197,8 @@ class ViolinPlot(BoxPlot): label = ','.join([d.pprint_value(v) for d, v in zip(element.kdims, key)])...
Fix Violin matplotlib rendering with non-finite values (#<I>)
py
diff --git a/grimoire_elk/ocean/crates.py b/grimoire_elk/ocean/crates.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/ocean/crates.py +++ b/grimoire_elk/ocean/crates.py @@ -29,3 +29,10 @@ class CratesOcean(ElasticOcean): """Confluence Ocean feeder""" pass + + @classmethod + def get_perceval_params_f...
[ocean][crates] Remove all params to be passed to the perceval backend The perceval backend for crates does not need any repository param. But we need to add an empty repository to projects.json so the backend is executed by mordred. Before creating the real perceval backend we need to remove this fake repository para...
py
diff --git a/picuplib/upload.py b/picuplib/upload.py index <HASH>..<HASH> 100644 --- a/picuplib/upload.py +++ b/picuplib/upload.py @@ -195,16 +195,28 @@ def upload(apikey, picture, resize=None, rotation='00', noexif=False, Need to take one argument. you can use the len function to determine \ the body...
add support for handing over image data directly
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,12 +21,23 @@ def delete_old_slimit_files(): os.remove(file_path) -class new_install(install): - def __init__(self, *args, **kwargs): - super(new_install, self).__init__(*args, **kwargs) - ...
fix for broken slimit/ply again
py
diff --git a/cookiecutter/config.py b/cookiecutter/config.py index <HASH>..<HASH> 100644 --- a/cookiecutter/config.py +++ b/cookiecutter/config.py @@ -39,7 +39,7 @@ def _expand_path(path): def get_config(config_path): - """Retrieve the config from the specified path, returning it as a config dict.""" + """Re...
Edit get_config docstring to trim to <I> characters
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,19 +10,6 @@ def here(*paths): return os.path.abspath(os.path.join(os.path.dirname(__file__), *paths)) -try: - import brotli.brotli -except ImportError: - # installing - there is no cffi yet - ext_modules ...
Remove some ahead-of-time building.
py
diff --git a/src/flask_assets.py b/src/flask_assets.py index <HASH>..<HASH> 100644 --- a/src/flask_assets.py +++ b/src/flask_assets.py @@ -229,6 +229,9 @@ class FlaskResolver(Resolver): If app.config("FLASK_ASSETS_USE_S3") exists and is True then we import the url_for function from flask.ext.s3, ...
adding option to use flask-cdn
py
diff --git a/kerncraft/models/layer_condition.py b/kerncraft/models/layer_condition.py index <HASH>..<HASH> 100755 --- a/kerncraft/models/layer_condition.py +++ b/kerncraft/models/layer_condition.py @@ -175,7 +175,6 @@ class LC(object): results['dimensions'][dimension]['caches'] = {} for cl in...
removed debug output in LC module
py
diff --git a/taskrunner/__main__.py b/taskrunner/__main__.py index <HASH>..<HASH> 100644 --- a/taskrunner/__main__.py +++ b/taskrunner/__main__.py @@ -19,7 +19,7 @@ def main(argv=None): When a task name is encountered in ``argv``, it will be considered the starting point of the next task *unless* the previo...
Fix typo in main() docstring
py
diff --git a/sos/report/plugins/ssh.py b/sos/report/plugins/ssh.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/ssh.py +++ b/sos/report/plugins/ssh.py @@ -19,9 +19,28 @@ class Ssh(Plugin, IndependentPlugin): profiles = ('services', 'security', 'system', 'identity') def setup(self): - self.add...
[ssh] SSH and SSHD configurations may be fragmented The SSH configurations may have an include directive. This adjustment to the plugin will copy in the main configs and then read those for any include keywords and attempt to copy those as well. Resolves: #<I>
py
diff --git a/can/io/generic.py b/can/io/generic.py index <HASH>..<HASH> 100644 --- a/can/io/generic.py +++ b/can/io/generic.py @@ -73,7 +73,7 @@ class MessageWriter(BaseIOHandler, can.Listener, metaclass=ABCMeta): # pylint: disable=abstract-method,too-few-public-methods class FileIOMessageWriter(MessageWriter, meta...
Update docstring of can.io.generic.FileIOMessageWriter (#<I>)
py
diff --git a/avatar/admin.py b/avatar/admin.py index <HASH>..<HASH> 100644 --- a/avatar/admin.py +++ b/avatar/admin.py @@ -4,7 +4,7 @@ try: from django.utils import six except ImportError: import six -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy a...
Django <I>: ugettext_lazy -> gettext_lazy
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -37,5 +37,5 @@ setup( 'wpconfigr' ], url='https://github.com/cariad/py-wpconfigr', - version='1.0' + version='1.1' )
Increment version to <I>
py
diff --git a/tools/c7n_trailcreator/c7n_trailcreator/trailcreator.py b/tools/c7n_trailcreator/c7n_trailcreator/trailcreator.py index <HASH>..<HASH> 100644 --- a/tools/c7n_trailcreator/c7n_trailcreator/trailcreator.py +++ b/tools/c7n_trailcreator/c7n_trailcreator/trailcreator.py @@ -763,7 +763,7 @@ def tag(assume, regio...
tools/c7n_trailcreator - load only aws provider resource types (#<I>)
py
diff --git a/compiler/js/code.py b/compiler/js/code.py index <HASH>..<HASH> 100644 --- a/compiler/js/code.py +++ b/compiler/js/code.py @@ -14,7 +14,7 @@ def replace_enums(text, generator, registry): return text -id_re = re.compile(r'([_a-z]\w*)\.') +id_re = re.compile(r'(?<!\.)([_a-z]\w*)\.') def process(text, g...
added negative look behind for \. to match only first id used
py
diff --git a/scout/server/blueprints/cases/views.py b/scout/server/blueprints/cases/views.py index <HASH>..<HASH> 100644 --- a/scout/server/blueprints/cases/views.py +++ b/scout/server/blueprints/cases/views.py @@ -114,7 +114,7 @@ def phenotypes_actions(institute_id, case_name): store.remove_phenotype(inst...
fix issue when no phenotype terms exist
py
diff --git a/dtool_irods/storagebroker.py b/dtool_irods/storagebroker.py index <HASH>..<HASH> 100644 --- a/dtool_irods/storagebroker.py +++ b/dtool_irods/storagebroker.py @@ -233,9 +233,20 @@ class IrodsStorageBroker(object): fname = generate_identifier(relpath) dest_path = os.path.join(self._data_abs...
Add relpath handle as irods metadata when putting a file
py
diff --git a/invocations/travis.py b/invocations/travis.py index <HASH>..<HASH> 100644 --- a/invocations/travis.py +++ b/invocations/travis.py @@ -74,24 +74,16 @@ def sudo_coverage(c): @task -def test_installation(c, package, sanity=None): +def test_installation(c, package, sanity): """ Test a non-editab...
Wait am I crazy, we only need explicit venv junk under sudo right?
py
diff --git a/openquake/baselib/general.py b/openquake/baselib/general.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/general.py +++ b/openquake/baselib/general.py @@ -218,6 +218,8 @@ def split_in_blocks(sequence, hint, weight=lambda item: 1, return block_splitter(items, math.ceil(total_weight / hint), weig...
Fixed deep_eq in the case of empty arrays
py
diff --git a/tools/c7n_mailer/c7n_mailer/utils.py b/tools/c7n_mailer/c7n_mailer/utils.py index <HASH>..<HASH> 100644 --- a/tools/c7n_mailer/c7n_mailer/utils.py +++ b/tools/c7n_mailer/c7n_mailer/utils.py @@ -196,9 +196,11 @@ def resource_format(resource, resource_type): len(resource.get('IpPermissions', ())...
tools/c7n_mailer Updating mailer resource_format for log-group (#<I>)
py
diff --git a/pysat/tests/test_orbits.py b/pysat/tests/test_orbits.py index <HASH>..<HASH> 100644 --- a/pysat/tests/test_orbits.py +++ b/pysat/tests/test_orbits.py @@ -628,7 +628,7 @@ class TestOrbitsGappyData2(TestGeneralOrbitsMLT): seconds=int(seconds)) - ...
TST: custom attath input Fixed custom attach input in unit tests.
py
diff --git a/colorama/win32.py b/colorama/win32.py index <HASH>..<HASH> 100644 --- a/colorama/win32.py +++ b/colorama/win32.py @@ -4,8 +4,12 @@ STDOUT = -11 STDERR = -12 +import ctypes +from ctypes import LibraryLoader + +windll = LibraryLoader(ctypes.WinDLL) + try: - from ctypes import windll from ctypes ...
Fix issue #<I>, incompatible with pyreadline. Use the fix supplied by google code user eryksun, creating our own instance of WinDLL('kernel<I>'), since this seems to make sure we won't be incompatible with any other libraries that also use ctypes.windll. Still haven't tested that this fix is safe on non-win platforms...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,11 +14,13 @@ setup( 'robber.matchers', ], classifiers=[ + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', 'Development Status :: 4 - Beta', 'Int...
Adding Python 3 to the pypi classifiers.
py
diff --git a/flask_security/datastore.py b/flask_security/datastore.py index <HASH>..<HASH> 100644 --- a/flask_security/datastore.py +++ b/flask_security/datastore.py @@ -195,7 +195,7 @@ class SQLAlchemyUserDatastore(SQLAlchemyDatastore, UserDatastore): def _is_numeric(self, value): try: int(...
Fail silently for get_user(None) get_user(identifier) checks if the identifier is a number by trying to convert it to int. This works for strings, but in a particular case, when identifier is None, it fails. Checking for both TypeError and ValueError fixes it.
py
diff --git a/pyecharts/js_extensions.py b/pyecharts/js_extensions.py index <HASH>..<HASH> 100644 --- a/pyecharts/js_extensions.py +++ b/pyecharts/js_extensions.py @@ -14,7 +14,7 @@ OFFICIAL_PLUGINS = [ "echarts_china_cities_pypkg", "echarts_countries_pypkg" ] -THIRD_PARTY_PLUGIN_PREFIX = "pyecharts_" +THIRD_...
:hammer: all javascript extension will need start with echarts_
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -250,7 +250,10 @@ def queue_next(task_func, task_args): of the "plumbing" which handles task queuing (such as the various "task ...
calcs/base: `queue_next` now executes tasks as plain functions if OQ_NO_DISTRIBUTE is set.
py
diff --git a/afns/apps/markdown/templatetags/markdown.py b/afns/apps/markdown/templatetags/markdown.py index <HASH>..<HASH> 100644 --- a/afns/apps/markdown/templatetags/markdown.py +++ b/afns/apps/markdown/templatetags/markdown.py @@ -16,12 +16,4 @@ def markdown(value, arg=''): raise template.TemplateSynta...
I trust that I'll have the right markdown lib installed
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ version = imp.load_source('satpy.version', 'satpy/version.py') BASE_PATH = os.path.sep.join(os.path.dirname( os.path.realpath(__file__)).split(os.path.sep)) -requires = ['numpy >=1.4.1', 'pyresample', 't...
Update setup.py to always require pillow and not import PIL It seems that in older versions of setuptools (or maybe even easy_install) that importing certain libraries in setup.py causes an infinite loop and eats up memory until it gets killed by the kernel.
py
diff --git a/ufork/ufork.py b/ufork/ufork.py index <HASH>..<HASH> 100644 --- a/ufork/ufork.py +++ b/ufork/ufork.py @@ -109,10 +109,13 @@ except: pass #gevent worker not defined else: import gevent.pywsgi + import gevent.socket def serve_wsgi_gevent(wsgi, address): - server = gevent.pywsgi.W...
adding backwards compatibility with gevent <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -67,5 +67,6 @@ setup( 'Topic :: System :: Networking :: Monitoring', ], test_suite='tests', - tests_require=['iso8601'], + tests_require=['django'], + # tests_require=['iso8601'], # FIXME: Requires...
test with django for now
py
diff --git a/searx/results.py b/searx/results.py index <HASH>..<HASH> 100644 --- a/searx/results.py +++ b/searx/results.py @@ -138,6 +138,7 @@ class ResultContainer(object): # if the result has no scheme, use http as default if not result['parsed_url'].scheme: result['parsed_url'] = resul...
Fix results with no scheme Related to #<I>, which was fixed in e3df<I>b but broken in a refactoring (b6c3cb0)
py
diff --git a/l/project.py b/l/project.py index <HASH>..<HASH> 100644 --- a/l/project.py +++ b/l/project.py @@ -68,8 +68,10 @@ class GitPath(object): argv = ["git"] if self._git_dir is not None: argv.extend(["--git-dir", self._git_dir.path]) - argv.extend(["ls-tree", "--name-only", ...
Really really nasty, but at least seems to work for now.
py
diff --git a/whois_bridge.py b/whois_bridge.py index <HASH>..<HASH> 100644 --- a/whois_bridge.py +++ b/whois_bridge.py @@ -44,10 +44,6 @@ def init( ): except NameError: pass -def GetHandler( query ): - if re.search( r'\.ar$', query.lower() ): return doARQuery, ARParser - if re.search( r'(\.fed\.us|\.gov)$',...
Added support for .co.za and removed deprecated GetHandler function.
py
diff --git a/configargparse.py b/configargparse.py index <HASH>..<HASH> 100644 --- a/configargparse.py +++ b/configargparse.py @@ -241,15 +241,18 @@ class ArgumentParser(argparse.ArgumentParser): else: args = list(args) + new_args = list() long_arg_re = re.compile(r"^(?P<key>--[^...
updated to preserve order of args
py
diff --git a/searx/engines/yandex.py b/searx/engines/yandex.py index <HASH>..<HASH> 100644 --- a/searx/engines/yandex.py +++ b/searx/engines/yandex.py @@ -20,8 +20,13 @@ categories = ['general'] paging = True language_support = True # TODO +default_tld = 'com' +language_map = {'ru': 'ru', + 'ua': 'u...
[fix] yandex engine language support according to #<I>
py
diff --git a/ldapcherry/backend/backendLdap.py b/ldapcherry/backend/backendLdap.py index <HASH>..<HASH> 100644 --- a/ldapcherry/backend/backendLdap.py +++ b/ldapcherry/backend/backendLdap.py @@ -311,6 +311,9 @@ class Backend(ldapcherry.backend.Backend): dn, ldap.dn.dn2str([[(ba...
fix rename in modify when renaming an entry, dn must be reset to the correct value for the modifications that come after the rename.
py
diff --git a/telethon/client/users.py b/telethon/client/users.py index <HASH>..<HASH> 100644 --- a/telethon/client/users.py +++ b/telethon/client/users.py @@ -94,8 +94,10 @@ class UserMethods: if utils.is_list_like(request): request = request[request_index] - self....
Don't cache SLOW_MODE_WAIT in _flood_waited_requests Closes #<I>.
py
diff --git a/tests/unit/Events/test_BEvents.py b/tests/unit/Events/test_BEvents.py index <HASH>..<HASH> 100644 --- a/tests/unit/Events/test_BEvents.py +++ b/tests/unit/Events/test_BEvents.py @@ -2,7 +2,6 @@ from AlphaTwirl.Events import BEvents from AlphaTwirl.Events import Branch import sys import unittest -import ...
stop importing ROOT to test_BEvents.py
py
diff --git a/django-openstack/django_openstack/api.py b/django-openstack/django_openstack/api.py index <HASH>..<HASH> 100644 --- a/django-openstack/django_openstack/api.py +++ b/django-openstack/django_openstack/api.py @@ -159,7 +159,7 @@ class Server(APIResourceWrapper): Preserves the request info so image n...
in nova trunk, server.imageRef has been replaced by a server.image object
py
diff --git a/fedmsg/commands/tweet.py b/fedmsg/commands/tweet.py index <HASH>..<HASH> 100644 --- a/fedmsg/commands/tweet.py +++ b/fedmsg/commands/tweet.py @@ -61,11 +61,16 @@ def tweet(**kw): settings['api_key'], ) - for name, ep, topic, message in fedmsg.tail_messages(**kw): - link = fedmsg.t...
Be more careful with links that are NoneType.
py
diff --git a/poetry/console/commands/show.py b/poetry/console/commands/show.py index <HASH>..<HASH> 100644 --- a/poetry/console/commands/show.py +++ b/poetry/console/commands/show.py @@ -145,7 +145,7 @@ lists all packages available.""" self.line(line) def display_package_tree(self, package, installe...
Fix show command with --tree option
py
diff --git a/tests/test_checks.py b/tests/test_checks.py index <HASH>..<HASH> 100644 --- a/tests/test_checks.py +++ b/tests/test_checks.py @@ -132,7 +132,7 @@ class TestMissingAnyFills: ds = xr.open_dataset(fn) miss = checks.missing_any(ds.q_sim, freq='YS') np.testing.assert_array_equal(miss[...
revert back test change. miss is 2D, so still an array after indexing
py
diff --git a/salt/minion.py b/salt/minion.py index <HASH>..<HASH> 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -809,6 +809,10 @@ class Minion(MinionBase): elif data and tag: load['data'] = data load['tag'] = tag + elif not data and tag: + load['data'] = {} + ...
allow the minion to send empty dicts to the master the minion should be able to send empty dicts, because they appear every now and then. for example when pkg.list_upgrades reports that no upgrades are available.
py
diff --git a/tests/test_transliterate.py b/tests/test_transliterate.py index <HASH>..<HASH> 100644 --- a/tests/test_transliterate.py +++ b/tests/test_transliterate.py @@ -156,6 +156,3 @@ class TestTransliteratePackage(unittest.TestCase): def test_puan(self): self.assertEqual(puan("นาริน"), "นิน-รา") ...
Update test_transliterate.py
py
diff --git a/Lib/glyphsLib/builder.py b/Lib/glyphsLib/builder.py index <HASH>..<HASH> 100644 --- a/Lib/glyphsLib/builder.py +++ b/Lib/glyphsLib/builder.py @@ -301,15 +301,18 @@ def set_custom_params(ufo, parsed=None, data=None, misc_keys=(), non_info=()): else: assert data is None, "Shouldn't provide pars...
[builder] set OS/2 flSelection flags 7 and 8 from custom parameters we need to check if the value is True or False, not just whether the custom parameter is there.
py
diff --git a/spyderlib/plugins/inspector.py b/spyderlib/plugins/inspector.py index <HASH>..<HASH> 100644 --- a/spyderlib/plugins/inspector.py +++ b/spyderlib/plugins/inspector.py @@ -31,9 +31,9 @@ from spyderlib.widgets.externalshell.pythonshell import ExtPythonShellWidget from spyderlib.plugins import SpyderPluginWid...
Object Inspector: Move sphinx version import before sphinxify It should be faster this way to check for sphinx presence
py
diff --git a/Tree/draw.py b/Tree/draw.py index <HASH>..<HASH> 100644 --- a/Tree/draw.py +++ b/Tree/draw.py @@ -104,5 +104,5 @@ class SvgDrawer(Drawer): SUPPORTED_CANVAS = { "PIL.Image": PilDrawer, - "svgwrite.Drawing": SvgDrawer + "svgwrite.drawing": SvgDrawer } \ No newline at end of file
correct mdoule name of svg drawing
py
diff --git a/utils/bench_result.py b/utils/bench_result.py index <HASH>..<HASH> 100644 --- a/utils/bench_result.py +++ b/utils/bench_result.py @@ -28,8 +28,8 @@ def generate_results(results_files, type): max = bm['stats']['max'] avr = bm['stats']['mean'] table.append([meta, commit...
benchmark: result: sort based on rate
py
diff --git a/salt/modules/apt.py b/salt/modules/apt.py index <HASH>..<HASH> 100644 --- a/salt/modules/apt.py +++ b/salt/modules/apt.py @@ -140,6 +140,8 @@ def install(pkg, refresh=False, repo='', skip_verify=False, if version: pkg = "{0}={1}".format(pkg, version) + elif 'eq' in kwargs: + pkg =...
Add eq in for apt
py
diff --git a/tools/pip/setup.py b/tools/pip/setup.py index <HASH>..<HASH> 100644 --- a/tools/pip/setup.py +++ b/tools/pip/setup.py @@ -142,14 +142,14 @@ else: elif variant.startswith('CU92'): libraries.append('CUDA-9.2') -if variant != 'native': +if variant != 'NATIVE': libraries.append('MKLDNN') ...
fix native cd builds (#<I>)
py
diff --git a/buildozer/targets/android_new.py b/buildozer/targets/android_new.py index <HASH>..<HASH> 100644 --- a/buildozer/targets/android_new.py +++ b/buildozer/targets/android_new.py @@ -57,9 +57,8 @@ class TargetAndroidNew(TargetAndroid): elif option == "release": cmd.append("--releas...
Added window option for target android_new.
py
diff --git a/moztelemetry/scalar.py b/moztelemetry/scalar.py index <HASH>..<HASH> 100644 --- a/moztelemetry/scalar.py +++ b/moztelemetry/scalar.py @@ -19,7 +19,6 @@ from parse_scalars import ScalarType SCALARS_YAML_PATH = '/toolkit/components/telemetry/Scalars.yaml' REVISIONS = {'nightly': 'https://hg.mozilla.org/m...
Remove aurora scalar definitions (#<I>)
py
diff --git a/psamm/gapfill.py b/psamm/gapfill.py index <HASH>..<HASH> 100644 --- a/psamm/gapfill.py +++ b/psamm/gapfill.py @@ -126,7 +126,9 @@ def gapfind(model, solver, epsilon=0.001, v_max=1000): yield compound -def gapfill(model, core, blocked, exclude, solver, epsilon=0.001, v_max=1000): +def gapfi...
gapfill: Allow weights on added/modified reactions Allows the user to penalize reactions differently when proposing added or modified reactions. Default penalty value is 1.
py
diff --git a/py/testdir_multi_jvm/test_NN2_mnist_multi.py b/py/testdir_multi_jvm/test_NN2_mnist_multi.py index <HASH>..<HASH> 100644 --- a/py/testdir_multi_jvm/test_NN2_mnist_multi.py +++ b/py/testdir_multi_jvm/test_NN2_mnist_multi.py @@ -57,7 +57,7 @@ class Basic(unittest.TestCase): 'max_w2' ...
Increase epochs to <I> and increase tolerance to <I>
py
diff --git a/uk_geo_utils/management/commands/import_cleaned_addresses.py b/uk_geo_utils/management/commands/import_cleaned_addresses.py index <HASH>..<HASH> 100644 --- a/uk_geo_utils/management/commands/import_cleaned_addresses.py +++ b/uk_geo_utils/management/commands/import_cleaned_addresses.py @@ -6,6 +6,12 @@ from...
Make import_cleaned_addresses drop related tables This is necessary if your ONSUD_MODEL is related to your ADDRESS_MODEL, as is the case in UK-Polling-Stations. Without this the related table prevents the Address table from being truncated.
py
diff --git a/src/chemcoord/cartesian_coordinates/_cartesian_class_get_zmat.py b/src/chemcoord/cartesian_coordinates/_cartesian_class_get_zmat.py index <HASH>..<HASH> 100644 --- a/src/chemcoord/cartesian_coordinates/_cartesian_class_get_zmat.py +++ b/src/chemcoord/cartesian_coordinates/_cartesian_class_get_zmat.py @@ -6...
BUG: Bugfix because of partial argument ordering
py
diff --git a/pyvista/plotting/plotting.py b/pyvista/plotting/plotting.py index <HASH>..<HASH> 100644 --- a/pyvista/plotting/plotting.py +++ b/pyvista/plotting/plotting.py @@ -587,6 +587,8 @@ class BasePlotter(PickingHelper, WidgetHelper): """Set the current interactive render window to isometric view.""" ...
Fix #<I> (#<I>)
py
diff --git a/zounds/index/test_hammingdb.py b/zounds/index/test_hammingdb.py index <HASH>..<HASH> 100644 --- a/zounds/index/test_hammingdb.py +++ b/zounds/index/test_hammingdb.py @@ -132,6 +132,7 @@ class HammingDbTests(unittest2.TestCase): db.append('a' * 8, 'some data') self.assertEqual(2, len(db)) ...
Ignore test that fails in CI build. These are way out of scope for zounds and should be removed anyway
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,12 +31,16 @@ setup( author_email='', description='A python package for distribution grid analysis and optimization', install_requires = [ - 'ding0==0.1.2', + 'ding0==0.1.2+git.5d882e80', ...
Links to latest commit in setup.py
py
diff --git a/cytomine/cytomine_job.py b/cytomine/cytomine_job.py index <HASH>..<HASH> 100644 --- a/cytomine/cytomine_job.py +++ b/cytomine/cytomine_job.py @@ -309,7 +309,7 @@ class CytomineJob(Cytomine): self.close(value) return False - def logger(self, start=0, end=100, period=None): + def jo...
ENH rename job logger getter
py
diff --git a/tests/test_tools.py b/tests/test_tools.py index <HASH>..<HASH> 100644 --- a/tests/test_tools.py +++ b/tests/test_tools.py @@ -345,6 +345,13 @@ class TestTools(unittest.TestCase): 'namespace': 'Microsoft.Authorization', 'subscription': 'fakesub', } ...
added tests for group ids
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ setup( 'Programming Language :: Python :: 3', ], install_requires=[ - "autobahn==17.5.1", + "autobahn==17.10.1", ], tests_require=[ ]
Updated autobahn requirement to match simpl-modelservice
py
diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py index <HASH>..<HASH> 100644 --- a/salt/cli/__init__.py +++ b/salt/cli/__init__.py @@ -224,11 +224,10 @@ class SaltCMD(parsers.SaltCMDOptionParser): print_cli('-------------------------------------------') print_cli('Summary') print_cli(...
Show all but list of unreturned minions with --summary
py
diff --git a/unit_systems.py b/unit_systems.py index <HASH>..<HASH> 100644 --- a/unit_systems.py +++ b/unit_systems.py @@ -109,10 +109,16 @@ class UnitSystem(object): repr += " %s: %s\n" % (key, self.units_map[dim]) return repr -def create_code_unit_system(ds): - code_unit_system = UnitS...
Make it possible to create a code unit system with MKS base units --HG-- branch : yt
py
diff --git a/TwitterSearch/TwitterSearchOrder.py b/TwitterSearch/TwitterSearchOrder.py index <HASH>..<HASH> 100644 --- a/TwitterSearch/TwitterSearchOrder.py +++ b/TwitterSearch/TwitterSearchOrder.py @@ -99,7 +99,7 @@ class TwitterSearchOrder(object): raise TwitterSearchException('Invalid callback string') ...
bugfix: date to datetime.date
py
diff --git a/libreantdb/test/__init__.py b/libreantdb/test/__init__.py index <HASH>..<HASH> 100644 --- a/libreantdb/test/__init__.py +++ b/libreantdb/test/__init__.py @@ -22,6 +22,6 @@ def cleanall(): if db.es.indices.exists(db.index_name): db.es.delete_by_query(index=db.index_name, ...
[ db_api ] do not recreate index on every test fixes #<I>
py
diff --git a/openstack_dashboard/dashboards/settings/user/forms.py b/openstack_dashboard/dashboards/settings/user/forms.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/settings/user/forms.py +++ b/openstack_dashboard/dashboards/settings/user/forms.py @@ -52,7 +52,8 @@ class UserSettingsForm(forms.Se...
Store timezone as string. Fixes bug <I>. Change-Id: I8fd<I>fd0c<I>e<I>d8e<I>b<I>c<I>a<I>
py
diff --git a/hydra_base/lib/objects.py b/hydra_base/lib/objects.py index <HASH>..<HASH> 100644 --- a/hydra_base/lib/objects.py +++ b/hydra_base/lib/objects.py @@ -27,7 +27,7 @@ from datetime import datetime from ..exceptions import HydraError from ..util import generate_data_hash -from ..import config +from .. impo...
Add a check for _asdict in objects.py to reflect siduation where a sqlalchemy object is passed in
py
diff --git a/tensorflow_probability/substrates/meta/rewrite.py b/tensorflow_probability/substrates/meta/rewrite.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/substrates/meta/rewrite.py +++ b/tensorflow_probability/substrates/meta/rewrite.py @@ -260,16 +260,17 @@ def main(argv): substrate = 'jax' if F...
Move the JAX/NumPy generated files notice to the end. This is to make the line numbers for errors correspond to the original sources. PiperOrigin-RevId: <I>
py
diff --git a/disqusapi/__init__.py b/disqusapi/__init__.py index <HASH>..<HASH> 100644 --- a/disqusapi/__init__.py +++ b/disqusapi/__init__.py @@ -9,7 +9,7 @@ disqus.trends.listThreads() try: __version__ = __import__('pkg_resources') \ .get_distribution('disqusapi').version -except: +except Exception: #...
Don't catch a bare except
py
diff --git a/unfriendly/__init__.py b/unfriendly/__init__.py index <HASH>..<HASH> 100644 --- a/unfriendly/__init__.py +++ b/unfriendly/__init__.py @@ -1,2 +1,2 @@ -VERSION = (0, 2, 2) +VERSION = (0, 2, 3) __version__ = '.'.join([str(x) for x in VERSION])
Bumped version -> <I>
py
diff --git a/tests/test_data_cloud.py b/tests/test_data_cloud.py index <HASH>..<HASH> 100644 --- a/tests/test_data_cloud.py +++ b/tests/test_data_cloud.py @@ -52,7 +52,7 @@ def _should_test_gcp(): try: check_output(['gcloud', 'auth', 'activate-service-account', '--key-fi...
test: gc: catch OSError
py
diff --git a/sos/report/plugins/gluster.py b/sos/report/plugins/gluster.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/gluster.py +++ b/sos/report/plugins/gluster.py @@ -76,9 +76,8 @@ class Gluster(Plugin, RedHatPlugin): "/var/lib/glusterd/", # collect nfs-ganesha related configuratio...
[gluster] collect public keys from the right dir Collection of glusterfind dir is achieved by /var/lib/gluster so it doesn't be collected explicitly. /var/lib/glusterd/glusterfind/.keys/ subdir is required to be explicitly collected, as add_copy_spec uses glob.glob() that skips hidden files. Resolves: #<I>
py