diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/django_distill/management/commands/distill-local.py b/django_distill/management/commands/distill-local.py index <HASH>..<HASH> 100644 --- a/django_distill/management/commands/distill-local.py +++ b/django_distill/management/commands/distill-local.py @@ -42,7 +42,7 @@ class Command(BaseCommand): ...
only check STATIC_ROOT exists when not using --exclude-staticfiles, resolves #<I>
py
diff --git a/spacy/lang/char_classes.py b/spacy/lang/char_classes.py index <HASH>..<HASH> 100644 --- a/spacy/lang/char_classes.py +++ b/spacy/lang/char_classes.py @@ -9,6 +9,8 @@ _bengali = r"\u0980-\u09FF" _hebrew = r"\u0591-\u05F4\uFB1D-\uFB4F" +_hindi = r"\u0900-\u097F" + # Latin standard _latin_u_standard = ...
Fix default punctuation rules for hindi text (#<I> explosion)
py
diff --git a/osmnx/io.py b/osmnx/io.py index <HASH>..<HASH> 100644 --- a/osmnx/io.py +++ b/osmnx/io.py @@ -377,15 +377,15 @@ def _stringify_nonnumeric_cols(gdf): def save_graph_xml( - data, - filepath=None, - node_tags=settings.osm_xml_node_tags, - node_attrs=settings.osm_xml_node_attrs...
Minor parameter edits (6) Pycharm formatting was overzealous and modified a function not worked on in this PR. This should undo the change in indentation.
py
diff --git a/holoviews/core/util.py b/holoviews/core/util.py index <HASH>..<HASH> 100644 --- a/holoviews/core/util.py +++ b/holoviews/core/util.py @@ -4,6 +4,7 @@ import itertools import string, fnmatch import unicodedata from collections import defaultdict +from functools import reduce import numpy as np import...
Added missing import in core.util
py
diff --git a/sentrylogs/helpers.py b/sentrylogs/helpers.py index <HASH>..<HASH> 100644 --- a/sentrylogs/helpers.py +++ b/sentrylogs/helpers.py @@ -1,7 +1,7 @@ """ Helper functions for Sentry Logs """ -from sentry_sdk import capture_message, configure_scope +from sentry_sdk import capture_message, push_scope from ...
Ensure the Sentry scope doesn't have old data
py
diff --git a/theanets/main.py b/theanets/main.py index <HASH>..<HASH> 100644 --- a/theanets/main.py +++ b/theanets/main.py @@ -172,6 +172,8 @@ class Experiment: def _build_trainers(self, **kwargs): '''Build trainers from command-line arguments. ''' + if not hasattr(self.args, 'optimize'): ...
Set a default optimizer if none is defined. Fixes issue #<I>.
py
diff --git a/django_plotly_dash/version.py b/django_plotly_dash/version.py index <HASH>..<HASH> 100644 --- a/django_plotly_dash/version.py +++ b/django_plotly_dash/version.py @@ -23,4 +23,4 @@ SOFTWARE. ''' -__version__ = "0.9.9" +__version__ = "0.9.10"
Increase version number (#<I>)
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -40,7 +40,7 @@ extensions = [ "sphinx.ext.extlinks", "sphinx.ext.intersphinx", "sphinx.ext.todo", - "sphinx_ansible_theme.ext.pygments_lexer", + "sphinx_ansible_theme", "notfound.exten...
Fix docs jobs (#<I>) The docs jobs are broken because the docs configuration is using a module that no longer exists. This change corrects that problem.
py
diff --git a/img2txt.py b/img2txt.py index <HASH>..<HASH> 100644 --- a/img2txt.py +++ b/img2txt.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- """ -Usage: imgtxt.py <imgfile> [--size=<size>] [--level=<level>] +Usage: img2txt.py <imgfile> [--size=<size>] [--level=<level>] """
oh img2txt
py
diff --git a/tests/render/test_render.py b/tests/render/test_render.py index <HASH>..<HASH> 100644 --- a/tests/render/test_render.py +++ b/tests/render/test_render.py @@ -139,7 +139,7 @@ def test_render_profiled_fixture_expectations_with_distribution(titanic_dataset_ rendered_json = PrescriptivePageRenderer.render...
Improve unicode handling in tests for py2 support
py
diff --git a/pysc2/lib/point_flag.py b/pysc2/lib/point_flag.py index <HASH>..<HASH> 100644 --- a/pysc2/lib/point_flag.py +++ b/pysc2/lib/point_flag.py @@ -18,6 +18,7 @@ from __future__ import division from __future__ import print_function from absl import flags +import six from pysc2.lib import point @@ -33,7 ...
Use six.string_types to get a py2/py3 equivalent of `isinstance(arg, (str, unicode))`. This fixes the revert in 1dde<I>. PiperOrigin-RevId: <I>
py
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index <HASH>..<HASH> 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -173,6 +173,10 @@ _apply_docs = { The resulting dtype will reflect the return value of the passed ``func``, see the exam...
GH<I> (#<I>) DOC
py
diff --git a/fragman/precisecodevillemerge.py b/fragman/precisecodevillemerge.py index <HASH>..<HASH> 100644 --- a/fragman/precisecodevillemerge.py +++ b/fragman/precisecodevillemerge.py @@ -104,7 +104,7 @@ def recurse_matches(a, b, ahi, bhi, answer, maxrecursion): for i in xrange(ahi - nahi): ans...
this should not be an old-style class
py
diff --git a/pyinfra/api/state.py b/pyinfra/api/state.py index <HASH>..<HASH> 100644 --- a/pyinfra/api/state.py +++ b/pyinfra/api/state.py @@ -333,7 +333,7 @@ class State(object): if self.config.FAIL_PERCENT is not None: percent_failed = ( - 1 - len(active_hosts) / len(self.connec...
Use `Inventory.len_all_hosts`, not `State.connected_hosts` for calculating failed percentages (so it works before connect).
py
diff --git a/tests/resources/test_resources.py b/tests/resources/test_resources.py index <HASH>..<HASH> 100644 --- a/tests/resources/test_resources.py +++ b/tests/resources/test_resources.py @@ -188,3 +188,13 @@ def test_resource_load_proxy_href_inner(simplemm): # def test_fileuridecoder(): # assert File_URI_de...
Add small unit test for rset new ChainMap The test only check if the 'metamodel_registry' per resource set is well isolated.
py
diff --git a/littlechef.py b/littlechef.py index <HASH>..<HASH> 100644 --- a/littlechef.py +++ b/littlechef.py @@ -480,6 +480,8 @@ def _print_node(node): def _get_recipes_in_cookbook(name): '''Gets the name of all recipes present in a cookbook''' recipes = [] + if not os.path.exists('cookbooks/' + name): ...
Don't say metadata.json not found when cookbook doesn't exist
py
diff --git a/djcelery/admin_utils.py b/djcelery/admin_utils.py index <HASH>..<HASH> 100644 --- a/djcelery/admin_utils.py +++ b/djcelery/admin_utils.py @@ -4,6 +4,11 @@ from pprint import pformat from django.utils.html import escape +FIXEDWIDTH_STYLE = '''\ +<span title="%s", style="font-size: %spt; \ +font-family:...
Fixes fields vanishing from admin task view. Closes #<I>
py
diff --git a/lightning/types/utils.py b/lightning/types/utils.py index <HASH>..<HASH> 100644 --- a/lightning/types/utils.py +++ b/lightning/types/utils.py @@ -235,7 +235,7 @@ def polygon_to_mask(coords, dims, z=None): return mask -def polygon_to_points(coords): +def polygon_to_points(coords, z=None): """ ...
Handle z-index for points
py
diff --git a/ansi2html/converter.py b/ansi2html/converter.py index <HASH>..<HASH> 100755 --- a/ansi2html/converter.py +++ b/ansi2html/converter.py @@ -293,14 +293,14 @@ def main(): # Produce only the headers and quit if opts.headers: - print(conv.produce_headers()) + _print(conv.produce_header...
Use correct output encoding for --partial. The problem was introduced in <I>ade7a9cebfa<I>b2ca<I>c<I>e5e
py
diff --git a/bcbio/structural/plot.py b/bcbio/structural/plot.py index <HASH>..<HASH> 100644 --- a/bcbio/structural/plot.py +++ b/bcbio/structural/plot.py @@ -6,6 +6,7 @@ variants. """ from bcbio.pipeline import datadict as dd from bcbio.variation import vcfutils +from bcbio.bam.coverage import plot_multiple_regions...
Add example code for how to make the plots.
py
diff --git a/python/thunder/utils/context.py b/python/thunder/utils/context.py index <HASH>..<HASH> 100644 --- a/python/thunder/utils/context.py +++ b/python/thunder/utils/context.py @@ -405,6 +405,11 @@ class ThunderContext(): import os path = os.path.dirname(os.path.realpath(__file__)) + # ...
workaround to find local example data on ec2 under Spark <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,20 @@ import os.path from setuptools import setup +# get __version__ +__version__ = None +exec(open(os.path.join(NAME, "about.py")).read()) +VERSION = __version__ + + NAME = "pyscreenshot" URL = "https://github...
setup: versioned link to home
py
diff --git a/pyvista/jupyter/pv_pythreejs.py b/pyvista/jupyter/pv_pythreejs.py index <HASH>..<HASH> 100644 --- a/pyvista/jupyter/pv_pythreejs.py +++ b/pyvista/jupyter/pv_pythreejs.py @@ -496,7 +496,7 @@ def convert_renderer(pv_renderer): # replace inf with a real value here due to changes in # ipywidges==6.4....
use larger infinity (#<I>)
py
diff --git a/maintain/commands/release.py b/maintain/commands/release.py index <HASH>..<HASH> 100644 --- a/maintain/commands/release.py +++ b/maintain/commands/release.py @@ -25,15 +25,28 @@ def release(version, dry_run, bump, pull_request): releaser = AggregateReleaser() + git_releasers = filter(lambda rel...
fix: Filter doesn't return an iterator on Py <I> Restores Python <I> compatibility
py
diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py index <HASH>..<HASH> 100644 --- a/src/_pytest/fixtures.py +++ b/src/_pytest/fixtures.py @@ -31,6 +31,7 @@ from _pytest.compat import safe_getattr from _pytest.compat import TYPE_CHECKING from _pytest.deprecated import FIXTURE_POSITIONAL_ARGUMENTS from _p...
fixtures: move import of ParameterSet to top level This gets typically used always (via `getfixtureinfo`).
py
diff --git a/models/msm.py b/models/msm.py index <HASH>..<HASH> 100644 --- a/models/msm.py +++ b/models/msm.py @@ -173,9 +173,9 @@ class MSM(object): if self._reversible: # TODO: this should be using reversible eigenvalue decomposition! - self._eigenvalues = anaeig(self._T, k=neig, nc...
[msm.models.msm]: added reversible eigenvalue computation
py
diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py index <HASH>..<HASH> 100644 --- a/pandas/core/reshape/pivot.py +++ b/pandas/core/reshape/pivot.py @@ -446,7 +446,18 @@ def crosstab(index, columns, values=None, rownames=None, colnames=None, >>> foo = pd.Categorical(['a', 'b'], categories=['a...
Reapply all patches by @testvinder against master (#<I>)
py
diff --git a/master/contrib/git_buildbot.py b/master/contrib/git_buildbot.py index <HASH>..<HASH> 100755 --- a/master/contrib/git_buildbot.py +++ b/master/contrib/git_buildbot.py @@ -35,22 +35,22 @@ from twisted.internet import reactor, defer from optparse import OptionParser -# Modify this to fit your setup, or p...
Fixed a few comments (server:port instead of server:host, s/iff/if)
py
diff --git a/HydraLib/python/HydraLib/hydra_dateutil.py b/HydraLib/python/HydraLib/hydra_dateutil.py index <HASH>..<HASH> 100644 --- a/HydraLib/python/HydraLib/hydra_dateutil.py +++ b/HydraLib/python/HydraLib/hydra_dateutil.py @@ -56,7 +56,7 @@ def get_datetime(timestamp): """ #First try to use date util. Fai...
change day first parameter to false when parsing dates so that it picks up european dates by default. A longer-term solution should be found for this
py
diff --git a/tests/integration/shell/matcher.py b/tests/integration/shell/matcher.py index <HASH>..<HASH> 100644 --- a/tests/integration/shell/matcher.py +++ b/tests/integration/shell/matcher.py @@ -312,6 +312,11 @@ class MatchTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn): ''' Tes...
Skip the correct test for the matcher tests in Arch I mixed up the test that was actually failing for Arch. I originally submitted #<I> to skip the test_salt_documentation test in the shell matcher tests. This is the wrong test to skip. I reverted the previous commit, and applied the skipTest to the correct test that...
py
diff --git a/txtorcon/torconfig.py b/txtorcon/torconfig.py index <HASH>..<HASH> 100644 --- a/txtorcon/torconfig.py +++ b/txtorcon/torconfig.py @@ -463,6 +463,8 @@ class EphemeralHiddenService(object): self.hostname = ans['ServiceID'] + '.onion' if self._key_blob.startswith('NEW:'): self.p...
Persist the Onion Service private key provided by the user
py
diff --git a/vexbot/adapters/shell/observers.py b/vexbot/adapters/shell/observers.py index <HASH>..<HASH> 100644 --- a/vexbot/adapters/shell/observers.py +++ b/vexbot/adapters/shell/observers.py @@ -39,13 +39,14 @@ def _super_parse(string: str) -> [list, dict]: class AuthorObserver(Observer): def __init__(self, a...
fixed name of subclass so it makes more sense
py
diff --git a/tldap/query.py b/tldap/query.py index <HASH>..<HASH> 100644 --- a/tldap/query.py +++ b/tldap/query.py @@ -177,13 +177,13 @@ class QuerySet(object): else: name,value = child - if name == "pk": - name = self._cls._meta.pk - na...
Move pk substitution to under the split.
py
diff --git a/spanner/unit_tests/test_client.py b/spanner/unit_tests/test_client.py index <HASH>..<HASH> 100644 --- a/spanner/unit_tests/test_client.py +++ b/spanner/unit_tests/test_client.py @@ -108,7 +108,8 @@ class TestClient(unittest.TestCase): def test_instance_admin_api(self): from google.cloud._test...
Properly mock out credentials for 'test_foo_api' tests.
py
diff --git a/sk_dsp_comm/sigsys.py b/sk_dsp_comm/sigsys.py index <HASH>..<HASH> 100644 --- a/sk_dsp_comm/sigsys.py +++ b/sk_dsp_comm/sigsys.py @@ -1310,7 +1310,7 @@ def fs_approx(Xk,fk,t): return x_approx -def FT_approx(x,t,Nfft): +def ft_approx(x,t,Nfft): ''' Approximate the Fourier transform of a f...
Changed FT_approx to ft_approx to be similar to fs_approx, etc.
py
diff --git a/udata/i18n.py b/udata/i18n.py index <HASH>..<HASH> 100644 --- a/udata/i18n.py +++ b/udata/i18n.py @@ -44,6 +44,11 @@ class PluggableDomain(Domain): # Load plugins translations if isinstance(translations, Translations): + # Load core extensions translations + ...
Properyly handle i<I>n for wtforms
py
diff --git a/source/rafcon/mvc/controllers/state_machines_editor.py b/source/rafcon/mvc/controllers/state_machines_editor.py index <HASH>..<HASH> 100644 --- a/source/rafcon/mvc/controllers/state_machines_editor.py +++ b/source/rafcon/mvc/controllers/state_machines_editor.py @@ -382,11 +382,14 @@ class StateMachinesEdit...
state machines editor: check if active_state_machine_id is not None
py
diff --git a/algoliasearch/index.py b/algoliasearch/index.py index <HASH>..<HASH> 100644 --- a/algoliasearch/index.py +++ b/algoliasearch/index.py @@ -904,7 +904,7 @@ class Index(object): return self._req(False, '/batch', 'POST', data=requests) - def search_facet(self, facet_name, facet_query, query=Non...
rename search_facet in a backward-compatible way
py
diff --git a/categories/__init__.py b/categories/__init__.py index <HASH>..<HASH> 100644 --- a/categories/__init__.py +++ b/categories/__init__.py @@ -2,7 +2,7 @@ __version_info__ = { 'major': 1, 'minor': 3, 'micro': 0, - 'releaselevel': 'final', + 'releaselevel': 'beta', 'serial': 1 }
Version bump to <I>b1
py
diff --git a/imagemounter/volume.py b/imagemounter/volume.py index <HASH>..<HASH> 100644 --- a/imagemounter/volume.py +++ b/imagemounter/volume.py @@ -47,6 +47,7 @@ class Volume(object): self.size = 0 self.flag = 'alloc' self.fsdescription = None + self._internal_fstype = None ...
Cache the internal FS type for efficiency.
py
diff --git a/tests/test_dnlds.py b/tests/test_dnlds.py index <HASH>..<HASH> 100644 --- a/tests/test_dnlds.py +++ b/tests/test_dnlds.py @@ -29,10 +29,10 @@ def test_dnlds(prt=sys.stdout): dnld_ontology(file_dst) # Test downloading of associations from NCBI. file_assc = os.path.join(cwd, "gene2go")...
Comment out download of gene2go on NCBI's ftp server
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -181,7 +181,7 @@ class LiSETest(unittest.TestCase): self.engine._things_cache ) - def test_roommate_collisions(self): + def testRoommateCollisions(self): """Test queries' ability to tell that...
camelCase all method names, to match unittest module style
py
diff --git a/conf.py b/conf.py index <HASH>..<HASH> 100644 --- a/conf.py +++ b/conf.py @@ -57,7 +57,7 @@ author = 'Martin Majlis' # The short X.Y version. version = "0.2" # The full version, including alpha/beta/rc tags. -release = "0.2.2" +release = "0.2.3" # The language for content autogenerated by Sphinx. Ref...
Update version to <I> in conf.py
py
diff --git a/meshio/vtk_io.py b/meshio/vtk_io.py index <HASH>..<HASH> 100755 --- a/meshio/vtk_io.py +++ b/meshio/vtk_io.py @@ -278,7 +278,10 @@ def _read_sub_section(f, info): data_type = info.split[2].lower() d[info.section] = _read_coords(f, data_type, info.is_ascii, info.num_points) ...
Bugfix: only DIMENSIONS are integer in DATASET
py
diff --git a/tests/risk_unittest.py b/tests/risk_unittest.py index <HASH>..<HASH> 100644 --- a/tests/risk_unittest.py +++ b/tests/risk_unittest.py @@ -1403,7 +1403,7 @@ class RiskJobGeneralTestCase(unittest.TestCase): def _prepare_bcr_result(self): self.job.blocks_keys = [19, 20] kvs.set_value_js...
flip canned lat/lon coos in test to reflect code changes
py
diff --git a/lyricfetch/cli.py b/lyricfetch/cli.py index <HASH>..<HASH> 100644 --- a/lyricfetch/cli.py +++ b/lyricfetch/cli.py @@ -25,12 +25,8 @@ def load_from_file(filename): logger.error("Err: File '%s' does not exist", filename) return None - try: - with open(filename, 'r') as sourcefil...
Let IOErrors slip when reading filenames from file
py
diff --git a/tests/integration/config.py b/tests/integration/config.py index <HASH>..<HASH> 100644 --- a/tests/integration/config.py +++ b/tests/integration/config.py @@ -8,6 +8,9 @@ class TestConfig(object): SQLALCHEMY_DATABASE_URI = "sqlite://" SQLALCHEMY_ECHO = False + CELERY_ALWAYS_EAGER = True # run tasks...
celery config for tests: no async, propagate exceptions
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 @@ -844,8 +844,8 @@ def mod_repo(repo, refresh=False, **kwargs): ) ) elif 'key_url' in kwargs: - ...
Fix #<I> The apt code here is raising an exception, this should most likely not be happening
py
diff --git a/plaso/multi_processing/process_info.py b/plaso/multi_processing/process_info.py index <HASH>..<HASH> 100644 --- a/plaso/multi_processing/process_info.py +++ b/plaso/multi_processing/process_info.py @@ -62,11 +62,17 @@ class ProcessInfo(object): lib, data, dirty, percent. """ try: - ex...
Pull request: <I>: Added psutil version 2 and later compatibility checks #<I>
py
diff --git a/ocrmypdf/pipeline.py b/ocrmypdf/pipeline.py index <HASH>..<HASH> 100644 --- a/ocrmypdf/pipeline.py +++ b/ocrmypdf/pipeline.py @@ -787,6 +787,8 @@ def ocr_tesseract_textonly_pdf( tessconfig=options.tesseract_config, timeout=options.tesseract_timeout, pagesegmode=options.tesseract_...
Fix missing user_words/user_patterns from textonly_pdf case
py
diff --git a/core/dbt/rpc/logger.py b/core/dbt/rpc/logger.py index <HASH>..<HASH> 100644 --- a/core/dbt/rpc/logger.py +++ b/core/dbt/rpc/logger.py @@ -89,6 +89,8 @@ class QueueTimeoutMessage(QueueMessage): class QueueLogHandler(logbook.queues.MultiProcessingHandler): def emit(self, record: logbook.LogRecord): +...
call pull_information() before we enqueue the log record
py
diff --git a/nion/swift/test/Symbolic_test.py b/nion/swift/test/Symbolic_test.py index <HASH>..<HASH> 100644 --- a/nion/swift/test/Symbolic_test.py +++ b/nion/swift/test/Symbolic_test.py @@ -342,7 +342,7 @@ class TestSymbolicClass(unittest.TestCase): computation = document_model.create_computation(Symbolic...
Update test to match new fft call.
py
diff --git a/webstack_django_sorting/templatetags/sorting_tags.py b/webstack_django_sorting/templatetags/sorting_tags.py index <HASH>..<HASH> 100644 --- a/webstack_django_sorting/templatetags/sorting_tags.py +++ b/webstack_django_sorting/templatetags/sorting_tags.py @@ -1,6 +1,6 @@ from operator import attrgetter -f...
Remove Django <I> support
py
diff --git a/awkward/pandas/__init__.py b/awkward/pandas/__init__.py index <HASH>..<HASH> 100644 --- a/awkward/pandas/__init__.py +++ b/awkward/pandas/__init__.py @@ -1,9 +1,9 @@ from .base import ( - AwkwardArray, AwkwardType, + AwkwardAccessor, ) __all__ = [ 'AwkwardType',...
[WIP] Removed 'AwkwardArray' instance from __init__ (not sure if __init__ is needed)
py
diff --git a/src/transformers/pipelines/question_answering.py b/src/transformers/pipelines/question_answering.py index <HASH>..<HASH> 100644 --- a/src/transformers/pipelines/question_answering.py +++ b/src/transformers/pipelines/question_answering.py @@ -228,8 +228,8 @@ class QuestionAnsweringPipeline(ChunkPipeline): ...
Updating the docs for `max_seq_len` in QA pipeline (#<I>)
py
diff --git a/telemetry/telemetry/page/page.py b/telemetry/telemetry/page/page.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/page/page.py +++ b/telemetry/telemetry/page/page.py @@ -6,6 +6,8 @@ import os import re import urlparse +from telemetry import decorators + class Page(object): def __init__(se...
Convert smoothness to the new timeline based metric API. This is a reland of <URL>
py
diff --git a/src/python/grpcio_tests/tests/unit/_metadata_flags_test.py b/src/python/grpcio_tests/tests/unit/_metadata_flags_test.py index <HASH>..<HASH> 100644 --- a/src/python/grpcio_tests/tests/unit/_metadata_flags_test.py +++ b/src/python/grpcio_tests/tests/unit/_metadata_flags_test.py @@ -94,10 +94,10 @@ class _Ge...
Kokoro is v4-only
py
diff --git a/koala/ast/graph.py b/koala/ast/graph.py index <HASH>..<HASH> 100644 --- a/koala/ast/graph.py +++ b/koala/ast/graph.py @@ -994,7 +994,7 @@ def cell2code(named_ranges, cell, sheet): code = root.emit(ast, context=sheet) else: ast = None - code = str('"' + cell.value + '"' if isin...
[bug] fixed encoding issue in cell2code
py
diff --git a/pydoop/pure/pipes.py b/pydoop/pure/pipes.py index <HASH>..<HASH> 100644 --- a/pydoop/pure/pipes.py +++ b/pydoop/pure/pipes.py @@ -235,6 +235,11 @@ class StreamRunner(object): def run_map(self, input_split, n_reduces, piped_input): logger.debug('start run_map') factory, ctx = ...
Bug <I> fix: the 'setInputTypes' is now correctly handled when piped_input is enabled
py
diff --git a/fedmsg/core.py b/fedmsg/core.py index <HASH>..<HASH> 100644 --- a/fedmsg/core.py +++ b/fedmsg/core.py @@ -96,7 +96,7 @@ class FedMsgContext(object): are emitting detectable heartbeats. """ - topic = self.c['topic_prefix'] + '.heartbeat' + topic = self.c['topic_prefix'] + '...
Fixed old reference heartbeat -> _heartbeat.
py
diff --git a/Lib/fontParts/base/normalizers.py b/Lib/fontParts/base/normalizers.py index <HASH>..<HASH> 100644 --- a/Lib/fontParts/base/normalizers.py +++ b/Lib/fontParts/base/normalizers.py @@ -100,6 +100,10 @@ def normalizeKerningKey(value): raise FontPartsError("Kerning key items must be strings, not %s...
Check that groups in the kerning keys contain the correct prefix.
py
diff --git a/ftr/version.py b/ftr/version.py index <HASH>..<HASH> 100644 --- a/ftr/version.py +++ b/ftr/version.py @@ -1,2 +1,2 @@ -version = '0.6.4' +version = '0.7'
version bump for <I>.
py
diff --git a/tests/basics/getitem.py b/tests/basics/getitem.py index <HASH>..<HASH> 100644 --- a/tests/basics/getitem.py +++ b/tests/basics/getitem.py @@ -21,6 +21,12 @@ try: except StopIteration: pass +# this class raises an IndexError to stop the iteration +class A: + def __getitem__(self, i): + rai...
tests: Add test where __getitem__ raises IndexError to stop iteration.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -62,6 +62,10 @@ else: long_description = "" +needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv) +pytest_runner = ['pytest-runner'] if needs_pytest else [] + + def ensure_scripts(linux_scripts): ...
Make installing pytest-runner contingent on running tests This monkeypatches several changes from [PyCQA/mccabe](<URL>) over to the pylint repo, since the pattern was equivalent between the two projects.
py
diff --git a/src/unity/python/turicreate/test/test_activity_classifier.py b/src/unity/python/turicreate/test/test_activity_classifier.py index <HASH>..<HASH> 100644 --- a/src/unity/python/turicreate/test/test_activity_classifier.py +++ b/src/unity/python/turicreate/test/test_activity_classifier.py @@ -184,7 +184,7 @@ c...
Python 3 fix in AC unit test The labels is a generator and gets consumed first time its used, leaving coreml_time1_values empty.
py
diff --git a/src/python/src/grpc/_adapter/_links_test.py b/src/python/src/grpc/_adapter/_links_test.py index <HASH>..<HASH> 100644 --- a/src/python/src/grpc/_adapter/_links_test.py +++ b/src/python/src/grpc/_adapter/_links_test.py @@ -40,7 +40,7 @@ from grpc.framework.base import interfaces from grpc.framework.foundat...
Increase test timeout The previous timeout was short enough that it led to erroneous failures. Fixes #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,12 @@ JSON Tokens """ from setuptools import setup, find_packages +import unittest + +def get_test_suite(): + test_loader = unittest.TestLoader() + test_suite = test_loader.discover('.', pattern='unit_tests.p...
add ./setup.py test support
py
diff --git a/ah_bootstrap.py b/ah_bootstrap.py index <HASH>..<HASH> 100644 --- a/ah_bootstrap.py +++ b/ah_bootstrap.py @@ -91,6 +91,17 @@ except: use_setuptools() +# typing as a dependency for 1.6.1+ Sphinx causes issues when imported after +# initializing submodule with ah_boostrap.py +# See discussion and re...
Importing typing to avoid issues later
py
diff --git a/inginious/frontend/pages/course_admin/task_edit.py b/inginious/frontend/pages/course_admin/task_edit.py index <HASH>..<HASH> 100644 --- a/inginious/frontend/pages/course_admin/task_edit.py +++ b/inginious/frontend/pages/course_admin/task_edit.py @@ -208,8 +208,11 @@ class CourseEditTask(INGIniousAdminPage)...
Ensure that code is not pushed into yaml
py
diff --git a/src/crate/client/sqlalchemy/types.py b/src/crate/client/sqlalchemy/types.py index <HASH>..<HASH> 100644 --- a/src/crate/client/sqlalchemy/types.py +++ b/src/crate/client/sqlalchemy/types.py @@ -47,6 +47,9 @@ class MutableList(Mutable, list): list.__setitem__(self, key, value) self.changed...
add __eq__ operator to MutableDict and MutableList
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ exec(read('tinydb/version.py')) setup( name="tinydb", version=__version__, - packages=find_packages(), + packages=find_packages(exclude=['tests']), # development metadata zip_safe=Tr...
Avoid installing tests as a package.
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,7 +10,7 @@ import pytest import ipopt -@pytest.fixture(scope=module) +@pytest.fixture(scope="module") def hs071_fixture(): """Return a default implementation of the hs071 test pr...
Fix missing quote marks denoting string in fixture decorator scope kwarg
py
diff --git a/pypsa/opt.py b/pypsa/opt.py index <HASH>..<HASH> 100644 --- a/pypsa/opt.py +++ b/pypsa/opt.py @@ -146,6 +146,10 @@ def l_constraint(model,name,constraints,*args): where constraints is a dictionary of constraints of the form: + constraints[i] = LConstraint object + + OR using the soon-to-be-d...
Fix l_constraint docstring
py
diff --git a/tests/test_definitions.py b/tests/test_definitions.py index <HASH>..<HASH> 100644 --- a/tests/test_definitions.py +++ b/tests/test_definitions.py @@ -208,6 +208,8 @@ def test_convert_magicc7_to_openscm_variables(magicc7, openscm): "Effective Radiative Forcing|Aerosols|Direct Effect|NH3|MAGICC ...
Check that the old EFFRF values are not converted to Effective Radiative Forcing
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,10 +14,12 @@ class build_ext_first(build_py_orig): DEFAULT = ["mupdf", "mupdf-third"] ARCH_LINUX = DEFAULT + ["jbig2dec", "openjp2", "jpeg", "freetype"] OPENSUSE = ARCH_LINUX + ["harfbuzz", "png16"] +FEDORA = ARCH_LINUX...
Load libraries on Fedora
py
diff --git a/usb1.py b/usb1.py index <HASH>..<HASH> 100644 --- a/usb1.py +++ b/usb1.py @@ -43,6 +43,10 @@ class USBAsyncReaderBase(object): self._event_callback_dict = {} self._errorCallback = DEFAULT_ASYNC_TRANSFER_ERROR_CALLBACK + def _getTransfer(self, handle, endpoint, data, callbackDispatche...
Make it clear USBAsyncReaderBase is an abstract class.
py
diff --git a/checkers/python3.py b/checkers/python3.py index <HASH>..<HASH> 100644 --- a/checkers/python3.py +++ b/checkers/python3.py @@ -68,7 +68,7 @@ class Python3Checker(checkers.BaseChecker): "instead of 'raise foo(bar)'.", {'maxversion': (3, 0), 'old_names...
Change the message ids, for consistency.
py
diff --git a/gwpy/timeseries/io/gwf/lalframe.py b/gwpy/timeseries/io/gwf/lalframe.py index <HASH>..<HASH> 100644 --- a/gwpy/timeseries/io/gwf/lalframe.py +++ b/gwpy/timeseries/io/gwf/lalframe.py @@ -147,6 +147,7 @@ def read(source, channels, start=None, end=None, series_class=TimeSeries, start = max(epoch, lalutil...
gwpy.timeseries: only read data we can when reading GWF data with lalframe, `TimeSeries.read` handles missing data on its own fixes #<I>
py
diff --git a/salt/config.py b/salt/config.py index <HASH>..<HASH> 100644 --- a/salt/config.py +++ b/salt/config.py @@ -901,7 +901,7 @@ def syndic_config(master_config_path, opts.update(master_opts) opts.update(minion_opts) syndic_opts = { - 'role': 'syndic', + '__role': 'syndic', '...
role --> __role
py
diff --git a/troposphere/utils.py b/troposphere/utils.py index <HASH>..<HASH> 100644 --- a/troposphere/utils.py +++ b/troposphere/utils.py @@ -37,5 +37,5 @@ def tail(conn, stack_name, log_func=_tail_print, sleep_time=5, for e in events: if e.event_id not in seen: log_func(e) - ...
tail: only add unseen events Since you already know whether the even was seen or not, there is no point in re-adding it.
py
diff --git a/visidata/vdtui.py b/visidata/vdtui.py index <HASH>..<HASH> 100755 --- a/visidata/vdtui.py +++ b/visidata/vdtui.py @@ -1762,6 +1762,8 @@ class Sheet(BaseSheet): rowattrs = {} # [rowidx] -> attr colattrs = {} # [colidx] -> attr + isNull = isNullFunc() + self.rowLayout = ...
[vdtui null] show null note according to isNull #<I>
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,7 +26,7 @@ import twine # -- General configuration ---------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. -# needs_sphinx = '1.0' +ne...
Require Sphinx <I> Make docs/conf.py consistent with docs/requirements.txt.
py
diff --git a/tensorboard/main.py b/tensorboard/main.py index <HASH>..<HASH> 100644 --- a/tensorboard/main.py +++ b/tensorboard/main.py @@ -21,7 +21,6 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function -import logging as base_logging import os import soc...
Don't ephemeral log server URL for now (#<I>) This needs to be fine tuned a bit more, in order to ensure it always appears when being logged to TTYs that aren't proper TTYs.
py
diff --git a/superset/datasets/api.py b/superset/datasets/api.py index <HASH>..<HASH> 100644 --- a/superset/datasets/api.py +++ b/superset/datasets/api.py @@ -147,6 +147,7 @@ class DatasetRestApi(BaseSupersetModelRestApi): "owners.username", "owners.first_name", "owners.last_name", + "...
refactor: Blossom metric fields for dataset API column selection (#<I>)
py
diff --git a/ykman/cli/fido.py b/ykman/cli/fido.py index <HASH>..<HASH> 100644 --- a/ykman/cli/fido.py +++ b/ykman/cli/fido.py @@ -74,7 +74,7 @@ def fido(ctx): \b Change the FIDO2 PIN from 123456 to 654321: - $ ykman fido set-pin --pin 123456 --new-pin 654321 + $ ykman fido access change-pin --p...
Fix rename set-pin -> change-pin for consistency.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,6 @@ except ImportError: else: setupdict['packages'] = find_packages('src') setupdict['package_dir'] = { '': 'src' } - setupdict['install_requires'] = ['Twisted'] - + setupdict['install_requi...
Added six to setup.py
py
diff --git a/test/helpers.py b/test/helpers.py index <HASH>..<HASH> 100644 --- a/test/helpers.py +++ b/test/helpers.py @@ -10,6 +10,7 @@ from unittest import mock import vobject +from khard import address_book from khard import carddav_object @@ -56,6 +57,28 @@ def mock_stream(name="stdout"): return cont...
Add a context manager for temp test abooks
py
diff --git a/molecule/commands.py b/molecule/commands.py index <HASH>..<HASH> 100644 --- a/molecule/commands.py +++ b/molecule/commands.py @@ -602,8 +602,8 @@ class Login(AbstractCommand): colorama.Fore.RED)) hostname = match[0] - login_cmd = self.molecule....
Fix molecule login Molecule login was broken as some variables were not defined properly.
py
diff --git a/setuptools/extension.py b/setuptools/extension.py index <HASH>..<HASH> 100644 --- a/setuptools/extension.py +++ b/setuptools/extension.py @@ -73,7 +73,9 @@ class Extension(_Extension): :keyword list[str] runtime_library_dirs: list of directories to search for C/C++ libraries at run time - ...
DOC: Mention that Extension(..., runtime_library_dirs) raises on Windows May want a closer match to the exception message to make it easier to search, but this should help. Inspired by #<I>.
py
diff --git a/tests/linalg_test.py b/tests/linalg_test.py index <HASH>..<HASH> 100644 --- a/tests/linalg_test.py +++ b/tests/linalg_test.py @@ -584,6 +584,8 @@ class NumpyLinalgTest(jtu.JaxTestCase): for shape in [(1, 1), (4, 4), (2, 3, 5), (5, 5, 5), (20, 20), (5, 10)] for pnorm in [np.inf, -np.inf, 1, -1...
Disable linalg_test.testCond. Issue: <I> This test was added in #<I> but is failing in internal tests.
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -721,10 +721,18 @@ class AESFuncs(object): Receive an event from the minion and fire it on the master event interface ''' - if 'id' not in load or 'tag' not in load or ...
Prep _minion_event method to handle new event process
py
diff --git a/signals.py b/signals.py index <HASH>..<HASH> 100644 --- a/signals.py +++ b/signals.py @@ -116,3 +116,12 @@ record_after_update = _signals.signal( """ This signal is sent after record is updated. """ + +pre_template_render = _signals.signal('pre-template-render') +""" +This signal is sent before *some* t...
base: add pre-template-render signal * Adds signal that can be sent from views prior to a template being rendered. This allows simple customizations of the template context.
py
diff --git a/markgen_tests.py b/markgen_tests.py index <HASH>..<HASH> 100644 --- a/markgen_tests.py +++ b/markgen_tests.py @@ -96,8 +96,13 @@ class MarkgenTests(unittest.TestCase): emphasis(u'yo momma')]) base_path = os.path.abspath(os.path.dirname(__file__)) + file_conten...
Fix tests utf8 usage for <I>
py
diff --git a/kitty/model/low_level/encoder.py b/kitty/model/low_level/encoder.py index <HASH>..<HASH> 100644 --- a/kitty/model/low_level/encoder.py +++ b/kitty/model/low_level/encoder.py @@ -49,10 +49,11 @@ def strToBytes(value): :param value: value to encode ''' kassert.is_of_types(value, (bytes, bytear...
[Encoder] improve performance for python2
py
diff --git a/zinnia/feeds.py b/zinnia/feeds.py index <HASH>..<HASH> 100644 --- a/zinnia/feeds.py +++ b/zinnia/feeds.py @@ -320,7 +320,7 @@ class SearchEntries(EntryFeed): """ Title of the feed. """ - return _("Results of the search for '%s'") % obj + return _("Search results for...
Use the same translation string for search results
py
diff --git a/django_select2/widgets.py b/django_select2/widgets.py index <HASH>..<HASH> 100644 --- a/django_select2/widgets.py +++ b/django_select2/widgets.py @@ -142,6 +142,8 @@ class Select2Mixin(object): options = dict(self.options) if options.get('allowClear', None) is not None: optio...
Support proper translation of placeholders using ugettext_lazy.
py
diff --git a/angr/analyses/scout.py b/angr/analyses/scout.py index <HASH>..<HASH> 100644 --- a/angr/analyses/scout.py +++ b/angr/analyses/scout.py @@ -331,8 +331,8 @@ class Scout(Analysis): traced_address = set() self._functions = set() self._call_map = networkx.DiGraph() - initial_sta...
don't track constraints in scout
py
diff --git a/lib/svtplay_dl/fetcher/dash.py b/lib/svtplay_dl/fetcher/dash.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/fetcher/dash.py +++ b/lib/svtplay_dl/fetcher/dash.py @@ -94,5 +94,6 @@ class DASH(VideoRetriever): if self.options.output != "-": file_d.close() + progressbar(...
dash: complete the progress bar after file is downloaded The progress bar wasn't updated after the downloaded completed, so the final progress bar would look something like this: [<I>/<I>][===============================.] ETA: 0:<I>:<I> This can be interpreted as the file didn't download completely. Reported-by...
py
diff --git a/command/build_ext.py b/command/build_ext.py index <HASH>..<HASH> 100644 --- a/command/build_ext.py +++ b/command/build_ext.py @@ -292,7 +292,7 @@ class build_ext (Command): ext.undef_macros = [] for macro in macros: if not (type(macro) is TupleType and...
Typo fix from David Ascher.
py
diff --git a/ceph_deploy/gatherkeys.py b/ceph_deploy/gatherkeys.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/gatherkeys.py +++ b/ceph_deploy/gatherkeys.py @@ -143,7 +143,7 @@ def gatherkeys_missing(args, distro, rlogger, keypath, keytype, dest_dir): keyring_path_local = os.path.join(dest_dir, keyring_name_loca...
gatherkeys: no need to decode - already done by remoto
py