diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
# coding=utf-8
-from distutils.core import setup
+from setuptools import setup
import os | Replacing incorrect import from distutils to setuptools | py |
diff --git a/validator/txnserver/quorum_validator.py b/validator/txnserver/quorum_validator.py
index <HASH>..<HASH> 100644
--- a/validator/txnserver/quorum_validator.py
+++ b/validator/txnserver/quorum_validator.py
@@ -26,11 +26,8 @@ class QuorumValidator(validator.Validator):
def start(self):
if self.Gen... | use anon function for nop Unrelated fixup: No reason to build a concrete function here | py |
diff --git a/tools/makemanifest.py b/tools/makemanifest.py
index <HASH>..<HASH> 100644
--- a/tools/makemanifest.py
+++ b/tools/makemanifest.py
@@ -172,6 +172,8 @@ def mkdir(filename):
def freeze_internal(kind, path, script, opt):
path = convert_path(path)
+ if not os.path.isdir(path):
+ raise FreezeEr... | tools/makemanifest.py: Add check that freeze path is a directory. Avoids accidentally writing freeze("path/to/file.py") and getting unexpected results. | py |
diff --git a/tests/unit/modules/zcbuildout_test.py b/tests/unit/modules/zcbuildout_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/zcbuildout_test.py
+++ b/tests/unit/modules/zcbuildout_test.py
@@ -137,7 +137,6 @@ class BuildoutTestCase(Base):
def callback2(a, b=1):
raise Exception('f... | Remove PyLint disable rule in <I> Since it's unlikely we upgrade PyLint in this branch | py |
diff --git a/source/rafcon/gui/mygaphas/guide.py b/source/rafcon/gui/mygaphas/guide.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/mygaphas/guide.py
+++ b/source/rafcon/gui/mygaphas/guide.py
@@ -79,10 +79,14 @@ class GuidedStateMixin(GuideMixin):
class GuidedStateInMotion(GuidedStateMixin, GuidedItemInMotion):... | feat(gaphas motion tools): root state can not be moved anymore | py |
diff --git a/dfttopif/parsers/vasp.py b/dfttopif/parsers/vasp.py
index <HASH>..<HASH> 100644
--- a/dfttopif/parsers/vasp.py
+++ b/dfttopif/parsers/vasp.py
@@ -148,10 +148,10 @@ class VaspParser(DFTParser):
with open(self.outcar) as fp:
#store the number of atoms and number of irreducible K-points
... | Made detection of NION, NKPTS more robust There is a VASP warning message with `NIONS` in it. The VASP parser was failing because it only looked for the word `NION`. This changes makes the parser robust to the appearance of this specific warning message. | py |
diff --git a/src/REST/keywords.py b/src/REST/keywords.py
index <HASH>..<HASH> 100644
--- a/src/REST/keywords.py
+++ b/src/REST/keywords.py
@@ -20,7 +20,7 @@ from __future__ import division
from io import open
from .compat import IS_PYTHON_2, STRING_TYPES
-from pytz import utc
+from pytz import utc, UnknownTimeZoneE... | Do not raise an exception, if there is no local timezone set (#<I>) | py |
diff --git a/djournal/admin.py b/djournal/admin.py
index <HASH>..<HASH> 100644
--- a/djournal/admin.py
+++ b/djournal/admin.py
@@ -25,6 +25,10 @@ class EntryAdmin(admin.ModelAdmin):
'title', 'subtitle', 'slug', 'author', 'created', 'modified',
)
+ list_filter = (
+ 'author',
+ )
+
sear... | Add list_filter by author to entry admin. | py |
diff --git a/OpenSSL/_util.py b/OpenSSL/_util.py
index <HASH>..<HASH> 100644
--- a/OpenSSL/_util.py
+++ b/OpenSSL/_util.py
@@ -1,6 +1,7 @@
-from cryptography.hazmat.backends.openssl import backend
-ffi = backend.ffi
-lib = backend.lib
+from cryptography.hazmat.bindings.openssl.binding import Binding
+binding = Binding(... | adjust to reflect the cryptography api change | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ numpy.distutils.core.setup(
# Author details
author='Russell Stoneback',
author_email='rstoneba@utdallas.edu',
- package_data={'pysatMagVect': ['version.txt'],},
+ package_data={'pysatMagVec... | Updated package_data to correctly include version.txt. | py |
diff --git a/dbt/runner.py b/dbt/runner.py
index <HASH>..<HASH> 100644
--- a/dbt/runner.py
+++ b/dbt/runner.py
@@ -255,6 +255,19 @@ class Runner:
run_model_results = pool.map(self.execute_wrapped_model, models_to_execute)
+ for i, model in enumerate(models_to_execute):
+ print... | print which models are running before execution begins | py |
diff --git a/girder/models/model_base.py b/girder/models/model_base.py
index <HASH>..<HASH> 100644
--- a/girder/models/model_base.py
+++ b/girder/models/model_base.py
@@ -791,12 +791,11 @@ class AccessControlledModel(Model):
if '_id' not in doc:
doc = self.save(doc)
else:
- ... | Fix conditional so it works in python 3 | py |
diff --git a/src/feat/agents/alert/alert_agent.py b/src/feat/agents/alert/alert_agent.py
index <HASH>..<HASH> 100644
--- a/src/feat/agents/alert/alert_agent.py
+++ b/src/feat/agents/alert/alert_agent.py
@@ -146,7 +146,7 @@ class AlertAgent(agent.BaseAgent):
return f
@rpc.publish
- @replay.immutable
+... | Don't return fiber from immutable message, there is a big chance it will not run. | py |
diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/svtplay.py
+++ b/lib/svtplay_dl/service/svtplay.py
@@ -21,6 +21,13 @@ from svtplay_dl.subtitle import subtitle
from svtplay_dl.utils.text import filenamify
URL_VIDEO_API = "htt... | svtplay: better way to detect live channels fixes: <I> | py |
diff --git a/perceval/backends/gerrit.py b/perceval/backends/gerrit.py
index <HASH>..<HASH> 100644
--- a/perceval/backends/gerrit.py
+++ b/perceval/backends/gerrit.py
@@ -186,7 +186,7 @@ class GerritClient():
CMD_VERSION = 'version'
PORT = '29418'
- def __init__(self, repository, user, max_reviews, black... | [gerrit] Use [] as default value for blacklist reviews | py |
diff --git a/rootpy/info.py b/rootpy/info.py
index <HASH>..<HASH> 100644
--- a/rootpy/info.py
+++ b/rootpy/info.py
@@ -9,7 +9,7 @@
|_| |___/
{0}
"""
-__version__ = '0.8.2.dev0'
+__version__ = '0.8.3.dev0'
__url__ = 'http://rootpy.github.com/rootpy'
__repo_url__ = 'https://github.com/ro... | bump to <I> [ci skip] | py |
diff --git a/openquake/job/__init__.py b/openquake/job/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/job/__init__.py
+++ b/openquake/job/__init__.py
@@ -241,6 +241,8 @@ class Job(object):
params['BASE_PATH'] = base_path
if FLAGS.output_type == 'db':
params['SERIALIZE_RESULTS_TO_... | When serializing results to DB, insert a new OqJob entry if necessary. | py |
diff --git a/indra/tools/live_curation/corpus.py b/indra/tools/live_curation/corpus.py
index <HASH>..<HASH> 100644
--- a/indra/tools/live_curation/corpus.py
+++ b/indra/tools/live_curation/corpus.py
@@ -116,7 +116,7 @@ class Corpus(object):
# Structure and upload assembled statements
self._s3_... | Skip indent=1 for upload with newlines | py |
diff --git a/thinc/config.py b/thinc/config.py
index <HASH>..<HASH> 100644
--- a/thinc/config.py
+++ b/thinc/config.py
@@ -256,6 +256,7 @@ class registry(object):
key_parent = f"{parent}.{key}".strip(".")
if key_parent in overrides:
value = overrides[key_parent]
+ ... | Also update config with value from overrides Otherwise the reported config in a validation error is wrong and reflects the previous value, so errors are confusing to interpret (and the problematic value is never shown) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ test_deps = [
'vcrpy']
setup(name='fast_arrow',
- version='0.2.5-alpha1',
+ version='0.2.5-alpha2',
description='A simple yet robust API client for Robinhood',
long_description=long_descr... | fix ssl certs in python package. | py |
diff --git a/doctr/local.py b/doctr/local.py
index <HASH>..<HASH> 100644
--- a/doctr/local.py
+++ b/doctr/local.py
@@ -58,8 +58,8 @@ def encrypt_variable(variable, build_repo, *, public_key=None, is_private=False,
token_id = None
try:
if is_private:
- print("I need to gener... | Add note that GitHub will email you about th personal access token Also print it in green so it is noticeable. | py |
diff --git a/figment/modes.py b/figment/modes.py
index <HASH>..<HASH> 100644
--- a/figment/modes.py
+++ b/figment/modes.py
@@ -62,7 +62,7 @@ class ExploreMode(Mode):
event = Event(**kwargs)
if not event:
- entity.tell(random.choice(('What?', 'Eh?', 'Come again?', 'Unknown command.')))... | Remove randomized errors from ExploreMode | py |
diff --git a/lib/drizzlepac/staticMask.py b/lib/drizzlepac/staticMask.py
index <HASH>..<HASH> 100644
--- a/lib/drizzlepac/staticMask.py
+++ b/lib/drizzlepac/staticMask.py
@@ -282,7 +282,7 @@ class staticMask(object):
else:
try:
- newHDU.writeto(filename, overwrite=True... | revert overwrite to clobber | py |
diff --git a/kubernetes/utils/HttpRequest.py b/kubernetes/utils/HttpRequest.py
index <HASH>..<HASH> 100644
--- a/kubernetes/utils/HttpRequest.py
+++ b/kubernetes/utils/HttpRequest.py
@@ -89,7 +89,13 @@ class HttpRequest:
state['status'] = response.status_code
state['reason'] = response.reason
- ... | Quick fix for "kubectl log" type requests. | py |
diff --git a/fireplace/dsl/lazynum.py b/fireplace/dsl/lazynum.py
index <HASH>..<HASH> 100644
--- a/fireplace/dsl/lazynum.py
+++ b/fireplace/dsl/lazynum.py
@@ -16,8 +16,11 @@ class LazyNum:
return getattr(super(), "__%s__" % (op))(other)
return func
+ __eq__ = _cmp("eq")
__ge__ = _cmp("ge")
+ __gt__ = _cmp("g... | Allow for eq/gt/lt comparisons in LazyNum | py |
diff --git a/spyderlib/plugins/editor.py b/spyderlib/plugins/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/editor.py
+++ b/spyderlib/plugins/editor.py
@@ -1842,7 +1842,7 @@ class Editor(SpyderPluginWidget):
dirname = osp.abspath(to_text_string(dirname))
for fname in self.get_filenames... | Update plugin Editor.removed_tree() method Editor.__close() method does not exist; use `close_file_from_name()` instead. | py |
diff --git a/detox/proc.py b/detox/proc.py
index <HASH>..<HASH> 100644
--- a/detox/proc.py
+++ b/detox/proc.py
@@ -136,11 +136,16 @@ class Detox:
if self.toxsession.config.option.sdistonly:
self._sdistpath = self.getresources("sdist")
return
- venv, sdist = self.getresources("v... | make detox honor skipsdist value in toxini | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ extras = {
setup(
name="pythainlp",
- version="2.0.5",
+ version="2.1.dev1",
description="Thai Natural Language Processing library",
long_description=readme,
long_description_content... | Start PyThaiNLP <I> | py |
diff --git a/regions/core/pixcoord.py b/regions/core/pixcoord.py
index <HASH>..<HASH> 100644
--- a/regions/core/pixcoord.py
+++ b/regions/core/pixcoord.py
@@ -121,16 +121,25 @@ class PixCoord:
y = self.y[key]
return PixCoord(x=x, y=y)
+ def __add__(self, other):
+ if not isinstance(other, ... | Add ability to add and subtract PixCoord objects | py |
diff --git a/command/sdist.py b/command/sdist.py
index <HASH>..<HASH> 100644
--- a/command/sdist.py
+++ b/command/sdist.py
@@ -64,6 +64,8 @@ class sdist (Command):
self.formats = None
self.keep_tree = 0
+ self.archive_files = None
+
def finalize_options (self):
if self.manifes... | Remember the list of archive files created in 'make_distribution()'. Added 'get_archive_files()' so outsiders can get their hands on that list. | py |
diff --git a/hypertools/tools/reduce.py b/hypertools/tools/reduce.py
index <HASH>..<HASH> 100644
--- a/hypertools/tools/reduce.py
+++ b/hypertools/tools/reduce.py
@@ -64,7 +64,7 @@ def reduce(x, ndims=3, model='IncrementalPCA', model_params={}, normalize=False,
# ppca if missing data
m = PPCA()
- ... | fixed bug in ppca to do with missing ndim arg | py |
diff --git a/django_stormpath/models.py b/django_stormpath/models.py
index <HASH>..<HASH> 100644
--- a/django_stormpath/models.py
+++ b/django_stormpath/models.py
@@ -237,6 +237,7 @@ class StormpathBaseUser(AbstractBaseUser, StormpathPermissionsMixin):
self.raw_password = raw_password
def save(self, *ar... | Make sure the original 'username' field is maintained correctly upon saving StormpathUser model instances | py |
diff --git a/openmath/xml.py b/openmath/xml.py
index <HASH>..<HASH> 100644
--- a/openmath/xml.py
+++ b/openmath/xml.py
@@ -19,7 +19,8 @@ omtags = {
"OMBVAR": om.OMBindVariables,
"OME": om.OMError
}
-inv_omtags = {(v,k) for k,v in omtags.items()}
+
+inv_omtags = dict((v,k) for k,v in omtags.items())
... | Use dict() syntax that works in Python <I> onward | py |
diff --git a/setuptools/tests/test_build_py.py b/setuptools/tests/test_build_py.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_build_py.py
+++ b/setuptools/tests/test_build_py.py
@@ -44,7 +44,7 @@ def test_recursive_in_package_data_glob(tmpdir_cwd):
dist.parse_command_line()
dist.run_commands()
... | Fix mistake on recursive glob test | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -90,10 +90,11 @@ author = u'Deren Eaton'
# built documents.
#
# The short X.Y version.
-import ipyrad
-version = ipyrad.__version__
+#import ipyrad
+
+version = 0.0.65 ##ipyrad.__version__
# The full versio... | try removing ipyrad import from conf.py | py |
diff --git a/intranet/test/ion_test.py b/intranet/test/ion_test.py
index <HASH>..<HASH> 100644
--- a/intranet/test/ion_test.py
+++ b/intranet/test/ion_test.py
@@ -1,4 +1,3 @@
-
from django.test import TestCase
from ..apps.users.models import User
@@ -17,7 +16,7 @@ class IonTestCase(TestCase):
def login(self)... | test: set self.user on login | py |
diff --git a/cwltool/process.py b/cwltool/process.py
index <HASH>..<HASH> 100644
--- a/cwltool/process.py
+++ b/cwltool/process.py
@@ -203,7 +203,7 @@ def stageFiles(pm, stageFunc=None, ignoreWritable=False, symFunc=True):
continue
if not os.path.exists(os.path.dirname(p.target)):
os.... | checking for path existence instead of / path begining | py |
diff --git a/py4chan/__init__.py b/py4chan/__init__.py
index <HASH>..<HASH> 100644
--- a/py4chan/__init__.py
+++ b/py4chan/__init__.py
@@ -23,7 +23,7 @@ _4CHAN_IMAGES_URL = 'images.4chan.org'
_4CHAN_THUMBS_URL = '0.thumbs.4chan.org'
_BOARD = '%s/%i.json'
_THREAD = '%s/res/%i.json'
-_VERSION = '0.1.2'
+_VERSION = '0.... | incremented version number to <I> | py |
diff --git a/pandas/core/base.py b/pandas/core/base.py
index <HASH>..<HASH> 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -885,6 +885,9 @@ class IndexOpsMixin:
axis : int, optional
For compatibility with NumPy. Only 0 or None are allowed.
skipna : bool, default True
+ ... | DOC: Fix PR<I>, PR<I> in Index.min and Index.max (#<I>) | py |
diff --git a/json_log_formatter/__init__.py b/json_log_formatter/__init__.py
index <HASH>..<HASH> 100644
--- a/json_log_formatter/__init__.py
+++ b/json_log_formatter/__init__.py
@@ -67,7 +67,14 @@ class JSONFormatter(logging.Formatter):
# argument passed in.
if mutated_record is None:
mu... | Small refactoring which allow to customize the way the record dict is converted to json | py |
diff --git a/src/ansiblelint/file_utils.py b/src/ansiblelint/file_utils.py
index <HASH>..<HASH> 100644
--- a/src/ansiblelint/file_utils.py
+++ b/src/ansiblelint/file_utils.py
@@ -218,13 +218,17 @@ def get_yaml_files(options: Namespace) -> Dict[str, Any]:
def guess_project_dir() -> str:
"""Return detected projec... | Avoid exception when git is missing (#<I>) Avoids an exception when trying to determine project root directory and git is missing and there is no .ansible-lint config either. Fixes: #<I> | py |
diff --git a/dwave/cloud/client.py b/dwave/cloud/client.py
index <HASH>..<HASH> 100644
--- a/dwave/cloud/client.py
+++ b/dwave/cloud/client.py
@@ -641,7 +641,7 @@ class Client(object):
Examples:
Get a solver not based on VFYC, with 2048 qubits:
- solver = client.solvers(vfyc=True,... | Expand .solvers() docs with a common use-case example | py |
diff --git a/tests/login.py b/tests/login.py
index <HASH>..<HASH> 100644
--- a/tests/login.py
+++ b/tests/login.py
@@ -407,6 +407,19 @@ def user_mixin():
assert not user.is_anonymous()
assert user.get_id() == u"1"
+@login.test
+def user_equality():
+ class MyUser(UserMixin):
+ def __init__(self, i... | Added a test for comparison of UserMixin objects. | py |
diff --git a/trashcli/__init__.py b/trashcli/__init__.py
index <HASH>..<HASH> 100644
--- a/trashcli/__init__.py
+++ b/trashcli/__init__.py
@@ -1,2 +1,2 @@
# the distribution script will change this to actual version number
-version='0.2.1'
+version='0.11.0' | Changing the version number to solve the problem described in <URL> | py |
diff --git a/clamservice.py b/clamservice.py
index <HASH>..<HASH> 100755
--- a/clamservice.py
+++ b/clamservice.py
@@ -807,9 +807,7 @@ class Project(object):
pythonpath = ':'.join(settings.DISPATCHER_PYTHONPATH)
except:
pass
- if PYTHONPATH:
- pyt... | reverting python path change | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,11 @@ setup(
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
+ 'Prog... | Indicate Python 3 compatibility in setup.py. | py |
diff --git a/ricecooker/utils/jsontrees.py b/ricecooker/utils/jsontrees.py
index <HASH>..<HASH> 100644
--- a/ricecooker/utils/jsontrees.py
+++ b/ricecooker/utils/jsontrees.py
@@ -333,7 +333,7 @@ def add_questions(exercise_node, question_list):
q_obj = questions.PerseusQuestion(
id=q['id'],... | get the source url from the data | py |
diff --git a/threadedcomments/__init__.py b/threadedcomments/__init__.py
index <HASH>..<HASH> 100644
--- a/threadedcomments/__init__.py
+++ b/threadedcomments/__init__.py
@@ -5,7 +5,7 @@ from threadedcomments.models import ThreadedComment
from threadedcomments.forms import ThreadedCommentForm
# following PEP 386
-_... | Set version to <I>b1 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,10 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
+import sys
+
+if sys.version_info[0] != 3:
+ sys.exit("Only Python 3 is supported")
with open('README.rst') as readme_file:
read... | feat: setup.py: explicit support only for python 3 | py |
diff --git a/questionary/prompts/common.py b/questionary/prompts/common.py
index <HASH>..<HASH> 100644
--- a/questionary/prompts/common.py
+++ b/questionary/prompts/common.py
@@ -39,10 +39,16 @@ class Choice(object):
"""
self.disabled = disabled
- self.value = value if value is not None else ... | choice value as concat'd title tokens | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ setup(
'numpy',
],
extras_require={
- 'dev': ['pytest', 'sphinx', 'nose', 'cython'],
+ 'dev': ['pytest', 'sphinx', 'nose', 'cython', 'pytest-capturelog'],
'simulation': ... | Add pytest-capturelog dependency | py |
diff --git a/bulbs/poll/viewsets.py b/bulbs/poll/viewsets.py
index <HASH>..<HASH> 100644
--- a/bulbs/poll/viewsets.py
+++ b/bulbs/poll/viewsets.py
@@ -16,9 +16,9 @@ class PollViewSet(viewsets.ModelViewSet):
"title",
"published",
"end_date",)
- search_fields = (
+ search_fiel... | using list instead of tuple for search fields | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,8 +17,6 @@ setup(
package_data = {
'micawber': [
],
- },
- package_data = {
'examples': [
#'requirements.txt',
'*/static/*.css', | Fucked up the setup.py oh gard | py |
diff --git a/wilson/classes.py b/wilson/classes.py
index <HASH>..<HASH> 100644
--- a/wilson/classes.py
+++ b/wilson/classes.py
@@ -203,7 +203,7 @@ class Wilson(ConfigurableClass):
self._set_cache('all', scale_ew, wc_ew.eft, wc_ew.basis, wc_ew)
wet = WETrunner(wc_ew, **self._wetrun_opt(... | [classes] Add 'sectors' option to one more translate command | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -73,16 +73,17 @@ install_requires = [
#'daemon',
'psutil',
#'arrow', # This is actually optional.
-
- # These are "optional" for now to make installation from pypi easier.
- #'M2Crypto', # for mess... | Specify cryptographic dependencies as an extra Rather than leaving dependent cryptographic libraries as commented-out lines in the setup script, mark them as requirements for the 'crypto' extra. | py |
diff --git a/salt/modules/gpg.py b/salt/modules/gpg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/gpg.py
+++ b/salt/modules/gpg.py
@@ -1076,7 +1076,9 @@ def verify(text=None,
verified = gpg.verify(text)
elif filename:
if signature:
- with salt.utils.flopen(signature, 'rb') as _fp:
... | Work around issues in gnupg closing the _fp prematurely | py |
diff --git a/moztelemetry/spark.py b/moztelemetry/spark.py
index <HASH>..<HASH> 100644
--- a/moztelemetry/spark.py
+++ b/moztelemetry/spark.py
@@ -181,6 +181,8 @@ def get_records(sc, source_name, **kwargs):
bucket_name = _sources[source_name]["bucket"]
bucket_prefix = _sources[source_name]["prefix"]
+ if... | Ensure that we add a trailing slash to prefix. | py |
diff --git a/examples/chatter2/chatter2/__init__.py b/examples/chatter2/chatter2/__init__.py
index <HASH>..<HASH> 100644
--- a/examples/chatter2/chatter2/__init__.py
+++ b/examples/chatter2/chatter2/__init__.py
@@ -1,9 +1,7 @@
#!/usr/bin/env python
-from sqlalchemy import engine_from_config
from pyramid.config import... | we don't rely on sqlalchemy, so no reason to import this stuff | py |
diff --git a/xdot.py b/xdot.py
index <HASH>..<HASH> 100755
--- a/xdot.py
+++ b/xdot.py
@@ -679,7 +679,7 @@ class ZoomToAnimation(MoveToAnimation):
visible = min(rect.width, rect.height) * .9
if distance > visible:
desired_middle_zoom = visible / distance
- self.extra_zoom = 4 *... | Never zoom in during animation. From: Marius Gedminas <<EMAIL>> | py |
diff --git a/paved/django.py b/paved/django.py
index <HASH>..<HASH> 100644
--- a/paved/django.py
+++ b/paved/django.py
@@ -24,7 +24,7 @@ util.update(
)
)
-__all__ = ['manage', 'call_manage', 'test', 'syncdb', 'shell', 'start']
+__all__ = ['manage', 'call_manage', 'djtest', 'syncdb', 'shell', 'start']
... | Fixed name of djtest in __all__ | py |
diff --git a/doctr/local.py b/doctr/local.py
index <HASH>..<HASH> 100644
--- a/doctr/local.py
+++ b/doctr/local.py
@@ -68,6 +68,8 @@ def encrypt_variable(variable, build_repo, *, public_key=None, is_private=False,
headersv3['Authorization'] = 'token {}'.format(res.json()['access_token'])
res =... | Add error handling if the public key cannot be found on travis-ci.com | py |
diff --git a/bloop/client.py b/bloop/client.py
index <HASH>..<HASH> 100644
--- a/bloop/client.py
+++ b/bloop/client.py
@@ -347,7 +347,7 @@ class Client(object):
for index in table.get('GlobalSecondaryIndexes', []):
for field in junk_index_fields:
index.pop(field, None)
- ... | Simplify key_schema if/elif | py |
diff --git a/stravalib/model.py b/stravalib/model.py
index <HASH>..<HASH> 100644
--- a/stravalib/model.py
+++ b/stravalib/model.py
@@ -405,6 +405,7 @@ class ActivityLap(LoadableEntity):
average_heartrate = Attribute(float, (SUMMARY, DETAILED,)) #: Average heartrate for lap
max_heartrate = Attribute(float, (S... | Adding device_watts to ActivityLap model. | py |
diff --git a/tests/acceptance/steps/util.py b/tests/acceptance/steps/util.py
index <HASH>..<HASH> 100644
--- a/tests/acceptance/steps/util.py
+++ b/tests/acceptance/steps/util.py
@@ -81,7 +81,9 @@ def produce_example_msg(topic, num_messages=1):
try:
producer.send_messages(topic, b'some message')
... | Fix acceptance test when producing to an existing topic | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,8 +23,8 @@ extras_require = {
'typing',
],
'docs': [
- 'Sphinx>=1.4,<1.5',
- 'sphinx_rtd_theme<0.2,>=0.1.9',
+ 'Sphinx>=1.6,<1.7',
+ 'sphinx_rtd_theme>=0.2.4,<0.3',
],
... | Update Sphinx to <I>.x | py |
diff --git a/nago/__init__.py b/nago/__init__.py
index <HASH>..<HASH> 100644
--- a/nago/__init__.py
+++ b/nago/__init__.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-__version__ = 0.1
+__version__ = 0.2
def get_version(): | Bumped version number to <I> | py |
diff --git a/source/rafcon/gui/utils/dialog.py b/source/rafcon/gui/utils/dialog.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/utils/dialog.py
+++ b/source/rafcon/gui/utils/dialog.py
@@ -251,7 +251,7 @@ class RAFCONCheckBoxTableDialog(RAFCONButtonDialog):
:param standalone: specify if the dialog should run... | fix CheckBoxDialog to work without handed callback function | py |
diff --git a/mpop/scene.py b/mpop/scene.py
index <HASH>..<HASH> 100644
--- a/mpop/scene.py
+++ b/mpop/scene.py
@@ -454,6 +454,13 @@ class SatelliteInstrumentScene(SatelliteScene):
if None, all channels are projected and copied over to the return
snapshot.
+ If *precompute* is set to true, the... | Doc: update docstring for project. | py |
diff --git a/test/testtoy.py b/test/testtoy.py
index <HASH>..<HASH> 100644
--- a/test/testtoy.py
+++ b/test/testtoy.py
@@ -29,5 +29,5 @@ def test_gentoy():
err = np.sqrt(expected)
chi2 = compute_chi2(htoy, expected, err)
-
+ print chi2, len(bins), chi2/len(bins)
assert(0.9<(chi2/len(bins))<1.1) | why does it fail on travis?? | py |
diff --git a/cloudsmith_cli/core/api/exceptions.py b/cloudsmith_cli/core/api/exceptions.py
index <HASH>..<HASH> 100644
--- a/cloudsmith_cli/core/api/exceptions.py
+++ b/cloudsmith_cli/core/api/exceptions.py
@@ -39,6 +39,8 @@ def catch_raise_api_exception():
yield
except _ApiException as exc:
deta... | Fixed uninitialised variable after API exception | py |
diff --git a/src/cltk/utils/utils.py b/src/cltk/utils/utils.py
index <HASH>..<HASH> 100644
--- a/src/cltk/utils/utils.py
+++ b/src/cltk/utils/utils.py
@@ -197,7 +197,7 @@ def mk_dirs_for_file(file_path: str) -> None:
return None
-def get_file_with_progress_bar(self, model_url: str, file_path: str) -> None:... | rm self from refactored get_file | py |
diff --git a/samtranslator/parser/parser.py b/samtranslator/parser/parser.py
index <HASH>..<HASH> 100644
--- a/samtranslator/parser/parser.py
+++ b/samtranslator/parser/parser.py
@@ -63,7 +63,7 @@ class Parser:
validation_errors = validator.validate(sam_template)
if validation_errors:
- ... | fix: fix validation errors log message that calls join on a string (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ TEST_REQUIRES = ANSIBLE_REQUIRES + (
"isort==5.10.1",
"flake8==4.0.1",
"flake8-commas==2.1.0", # black does not enforce trailing commas itself
- "flake8-black==0.3.2",
+ "flake8-black==0.3.... | Drop flake8-black version for Python <I> | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -30,7 +30,7 @@ import acstools
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx.ext.autodoc',
- 'sphinx.ext.pngmath',
+ 'sphinx.ext.im... | Get rid of sphinx warning | py |
diff --git a/salt/utils/jinja.py b/salt/utils/jinja.py
index <HASH>..<HASH> 100644
--- a/salt/utils/jinja.py
+++ b/salt/utils/jinja.py
@@ -30,8 +30,13 @@ def get_template(filename, opts, env):
return jinja.get_template(relpath)
else:
# fallback for templates outside the state tree
- with o... | A Loader is needed to handle Jinja includes (etc). Fixes the ability to utilize {% include %} (and other similar jinja specifics) in pillar data. This is an issue since pillar is rendered on the master but is outside the SaltCache loader's search path. The simplest solution is to use the FileSystemLoader instead of ... | py |
diff --git a/diff-highlight.py b/diff-highlight.py
index <HASH>..<HASH> 100644
--- a/diff-highlight.py
+++ b/diff-highlight.py
@@ -17,6 +17,7 @@
import re
from hgext import color
from mercurial import extensions
+from mercurial.i18n import _
from difflib import SequenceMatcher
INSERT_NORM = 'diff.inserted'
@@ -1... | Show warning and disable highlighting if color ext. is not found | py |
diff --git a/curtsies/input.py b/curtsies/input.py
index <HASH>..<HASH> 100644
--- a/curtsies/input.py
+++ b/curtsies/input.py
@@ -31,17 +31,18 @@ def is_main_thread():
class ReplacedSigIntHandler:
- def __init__(self, handler):
- # type: (Callable) -> None
+ def __init__(self, handler: Callable) -> N... | Save a call to signal.getsignal | py |
diff --git a/bcbio/variation/germline.py b/bcbio/variation/germline.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/germline.py
+++ b/bcbio/variation/germline.py
@@ -32,7 +32,7 @@ def split_somatic(items):
if cur["description"] not in germline_added:
germline_added.add(cur["de... | germline: avoid name error when normal sample present in multiple batches | py |
diff --git a/src/canari/config.py b/src/canari/config.py
index <HASH>..<HASH> 100644
--- a/src/canari/config.py
+++ b/src/canari/config.py
@@ -35,7 +35,14 @@ __all__ = [
'CanariConfigParser',
'load_config',
'NoOptionError',
- 'NoSectionError'
+ 'NoSectionError',
+ 'SECTION_LOCAL',
+ 'SECTION_... | added static strings to __all__ | py |
diff --git a/pandas/io/tests/test_sql.py b/pandas/io/tests/test_sql.py
index <HASH>..<HASH> 100644
--- a/pandas/io/tests/test_sql.py
+++ b/pandas/io/tests/test_sql.py
@@ -36,7 +36,7 @@ from pandas.types.common import (is_object_dtype, is_datetime64_dtype,
from pandas import DataFrame, Series, Index, MultiIndex, isnull... | TST: skip test_transactions in sqlitefallback on py<I> | py |
diff --git a/indy_node/server/validator_info_tool.py b/indy_node/server/validator_info_tool.py
index <HASH>..<HASH> 100644
--- a/indy_node/server/validator_info_tool.py
+++ b/indy_node/server/validator_info_tool.py
@@ -10,15 +10,18 @@ class ValidatorNodeInfoTool(PlenumValidatorNodeInfoTool):
@property
def inf... | [INDY-<I>] Add new dict format into node validator-info | py |
diff --git a/salt/matchers/list_match.py b/salt/matchers/list_match.py
index <HASH>..<HASH> 100644
--- a/salt/matchers/list_match.py
+++ b/salt/matchers/list_match.py
@@ -1,17 +1,18 @@
-
# -*- coding: utf-8 -*-
'''
This is the default list matcher.
'''
from __future__ import absolute_import, print_function, unicod... | Optimize list matcher by doing string membership checks, This is faster than splitting into a list and then iterating over it. | py |
diff --git a/salt/cloud/clouds/lxc.py b/salt/cloud/clouds/lxc.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/lxc.py
+++ b/salt/cloud/clouds/lxc.py
@@ -404,6 +404,7 @@ def create(vm_, call=None):
if backing in ['dir', 'overlayfs']:
fstype = None
size = None
+ if backing in ['dir']:
... | unjustified restriction over snapshoting over overlayfs | py |
diff --git a/lifxlan/light.py b/lifxlan/light.py
index <HASH>..<HASH> 100644
--- a/lifxlan/light.py
+++ b/lifxlan/light.py
@@ -56,13 +56,13 @@ class Light(Device):
print(e)
# color is [Hue, Saturation, Brightness, Kelvin]
- def set_waveform(self, transient, color, period, cycles, duty_cycle, wave... | changed transient to is_transient | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,6 +52,8 @@ setup(
license=about['__license__'],
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
+
classifiers=[
'License :: OSI Approved :: MIT License', | Add python_requires to help pip (#<I>) | py |
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py
index <HASH>..<HASH> 100755
--- a/fontbakery-check-ttf.py
+++ b/fontbakery-check-ttf.py
@@ -676,8 +676,9 @@ def main():
# it is not monospaced, so unset monospaced metadata
assert_table_entry('post', 'isFixedPitch', IS_FIXED_WIDTH_NOT_MONO... | trying to address issue #<I> (@davelab6 must review this!) | py |
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/aptpkg.py
+++ b/salt/modules/aptpkg.py
@@ -1314,10 +1314,10 @@ def mod_repo(repo, saltenv='base', **kwargs):
# implementation via apt-add-repository. The code path for
# secure PPAs sho... | Updated aptpkg.mod_repo() module to properly add new PPAs. To determine if the PPA needs to be added, parse the return of get_repo() rather than trying to catch its exceptions. | py |
diff --git a/pmagpy_tests/test_imports3.py b/pmagpy_tests/test_imports3.py
index <HASH>..<HASH> 100644
--- a/pmagpy_tests/test_imports3.py
+++ b/pmagpy_tests/test_imports3.py
@@ -817,7 +817,7 @@ class TestHujiSampleMagic(unittest.TestCase):
os.chdir(WD)
def tearDown(self):
- filelist = ['Massada_... | delete all unneeded files in test_imports3 | py |
diff --git a/pymongo/son.py b/pymongo/son.py
index <HASH>..<HASH> 100644
--- a/pymongo/son.py
+++ b/pymongo/son.py
@@ -25,6 +25,7 @@ from UserDict import DictMixin
import elementtree.ElementTree as ET
+from binary import Binary
from objectid import ObjectId
from dbref import DBRef
from errors import Unsupported... | make Binary instead of strings when coming from xml | py |
diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -348,6 +348,7 @@ def parse_slowlog_get(response, **options):
def parse_cluster_info(response, **options):
+ response = nativestr(response)
return dict(line.split(':') for line in respon... | Properly decode cluster info in callbacks Fixes #<I> | py |
diff --git a/jsonrpcclient/aiohttp_client.py b/jsonrpcclient/aiohttp_client.py
index <HASH>..<HASH> 100644
--- a/jsonrpcclient/aiohttp_client.py
+++ b/jsonrpcclient/aiohttp_client.py
@@ -18,5 +18,11 @@ class AiohttpClient(AsyncClient):
async def send_message(self, request):
with async_timeout.timeout(10):... | Include http status code and reason in aiohttp log | py |
diff --git a/tests/unit/modules/file_test.py b/tests/unit/modules/file_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/file_test.py
+++ b/tests/unit/modules/file_test.py
@@ -8,6 +8,7 @@ from salt.modules import cmdmod
filemod.__salt__ = {
'cmd.run': cmdmod.run,
+ 'cmd.run_all': cmdmod.run_all
}... | Add `cmd.run_all` to `__salt__`. Required for the unit test. | py |
diff --git a/indra/sources/trips/processor.py b/indra/sources/trips/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/trips/processor.py
+++ b/indra/sources/trips/processor.py
@@ -1233,8 +1233,9 @@ class TripsProcessor(object):
# to the FamPlex entry name
elif be_id:
... | Fix agent name fallback if grounding-based naming fails | py |
diff --git a/holoviews/core/ndmapping.py b/holoviews/core/ndmapping.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/ndmapping.py
+++ b/holoviews/core/ndmapping.py
@@ -423,12 +423,13 @@ class MultiDimensionalMapping(Dimensioned):
print(info_str)
- def table(self, **kwargs):
+ def table(self, datat... | Temporary fix for NdMapping.table | py |
diff --git a/hepdata_converter/parsers/yaml_parser.py b/hepdata_converter/parsers/yaml_parser.py
index <HASH>..<HASH> 100644
--- a/hepdata_converter/parsers/yaml_parser.py
+++ b/hepdata_converter/parsers/yaml_parser.py
@@ -58,13 +58,17 @@ class YAML(Parser):
(data_in, self._pretty_print_errors(
... | yaml parser: return empty dict if no information about whole submission | py |
diff --git a/simuvex/plugins/log.py b/simuvex/plugins/log.py
index <HASH>..<HASH> 100644
--- a/simuvex/plugins/log.py
+++ b/simuvex/plugins/log.py
@@ -48,6 +48,7 @@ class SimStateLog(SimStatePlugin):
@property
def fresh_constraints(self):
+ # pylint: disable=no-member
return [ev.constraint.a... | disable linting for line because the linter is not smart enough to propagate the isinstance call through the generated values | py |
diff --git a/backtrader/observers/timereturn.py b/backtrader/observers/timereturn.py
index <HASH>..<HASH> 100644
--- a/backtrader/observers/timereturn.py
+++ b/backtrader/observers/timereturn.py
@@ -47,6 +47,15 @@ class TimeReturn(Observer):
Only used for sub-day timeframes to for example work on an hourly
... | Adapt observer to fund mode: timereturn | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ from setuptools import setup
description = 'A spec-compliant gitignore parser for Python 3.5+'
setup(
name='gitignore_parser',
- version='0.0.6',
+ version='0.0.7',
install_requires=["pathlib; py... | Set version number for release <I> | py |
diff --git a/payu/models/um.py b/payu/models/um.py
index <HASH>..<HASH> 100644
--- a/payu/models/um.py
+++ b/payu/models/um.py
@@ -157,12 +157,6 @@ class UnifiedModel(Model):
work_nml['NLSTCALL']['MODEL_BASIS_TIME'] = run_start_date_um
work_nml['NLSTCALL']['ANCIL_REFTIME'] = run_start_date_um
... | Removed setting (#<I>) Removed setting cable_user%CABLE_RUNTIME_COUPLED = .FALSE. in CABLE namelist. Caused non-bit reproducibility with ACCESS-ESM-<I> runs. | py |
diff --git a/tempora/schedule.py b/tempora/schedule.py
index <HASH>..<HASH> 100644
--- a/tempora/schedule.py
+++ b/tempora/schedule.py
@@ -149,7 +149,7 @@ class Scheduler(object):
break
self.run(command)
if isinstance(command, PeriodicCommand):
- self.schedule(c... | Fix issue re-scheduling PeriodicCommands | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.