diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/salt/utils/schedule.py b/salt/utils/schedule.py
index <HASH>..<HASH> 100644
--- a/salt/utils/schedule.py
+++ b/salt/utils/schedule.py
@@ -616,7 +616,9 @@ class Schedule(object):
log.warning('schedule: The metadata parameter must be '
'specified as a dictionary.... | Don't change the process name if not on a new process | py |
diff --git a/source/rafcon/gui/controllers/states_editor.py b/source/rafcon/gui/controllers/states_editor.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/controllers/states_editor.py
+++ b/source/rafcon/gui/controllers/states_editor.py
@@ -489,6 +489,13 @@ class StatesEditorController(ExtendedController):
... | states editor: add warning if selection is inconsistent - still performs selection but also mentions this inconsistency -> maybe can be moved to state machine model | py |
diff --git a/newcore.py b/newcore.py
index <HASH>..<HASH> 100644
--- a/newcore.py
+++ b/newcore.py
@@ -43,7 +43,12 @@
# - a class implementing a given interface is also considered to implement all
# the ascendants of this interface
-__all__ = ['Component', 'implements', 'Interface', 'implementations']
+__all__ = ... | migrate TimeSideError into new core (shouldn't be there though) | py |
diff --git a/cipy/algorithms/pso/functions.py b/cipy/algorithms/pso/functions.py
index <HASH>..<HASH> 100644
--- a/cipy/algorithms/pso/functions.py
+++ b/cipy/algorithms/pso/functions.py
@@ -49,8 +49,8 @@ def std_velocity(particle, social, state):
c_1, c_2 = state.params['c_1'], state.params['c_2']
size = par... | Minor performance improvement in std_velocity | py |
diff --git a/spatialist/ancillary.py b/spatialist/ancillary.py
index <HASH>..<HASH> 100644
--- a/spatialist/ancillary.py
+++ b/spatialist/ancillary.py
@@ -1,6 +1,6 @@
##############################################################
# core routines for software spatialist
-# John Truckenbrodt 2014-2019
+# John Truckenbr... | [ancillary.which] pass arg 'mode' to shutil.which | py |
diff --git a/wal_e/cmd.py b/wal_e/cmd.py
index <HASH>..<HASH> 100755
--- a/wal_e/cmd.py
+++ b/wal_e/cmd.py
@@ -32,7 +32,7 @@ from wal_e.exception import UserException
from wal_e.operator import s3_operator
from wal_e.piper import popen_sp
from wal_e.worker.psql_worker import PSQL_BIN, psql_csv_run
-from wal_e.pipeli... | Check for the GPG binary if we need to | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -10,6 +10,9 @@ setup(
author = 'jaseg',
author_email = 'github@jaseg.net',
license = 'AGPLv3+',
+ extras_require = {
+ 'screenshot_raw': ['Pillow']
+ },
keywords = ['mpv', 'library', 'video... | setup.py: Add pillow extra dependency | py |
diff --git a/indy_node/test/helper.py b/indy_node/test/helper.py
index <HASH>..<HASH> 100644
--- a/indy_node/test/helper.py
+++ b/indy_node/test/helper.py
@@ -228,13 +228,12 @@ class TestUpgrader(Upgrader):
@spyable(
methods=[Node.handleOneNodeMsg, Node.processRequest, Node.processOrdered,
Node.post... | remove methods from spyables list (#<I>) | py |
diff --git a/alpaca_trade_api/common.py b/alpaca_trade_api/common.py
index <HASH>..<HASH> 100644
--- a/alpaca_trade_api/common.py
+++ b/alpaca_trade_api/common.py
@@ -24,6 +24,10 @@ def get_credentials(key_id=None, secret_key=None):
def get_polygon_credentials(alpaca_key=None):
+ try:
+ alpaca_key, _ = g... | Check for Alpaca environment variable when getting Polygon key | py |
diff --git a/mopidy_gmusic/library.py b/mopidy_gmusic/library.py
index <HASH>..<HASH> 100644
--- a/mopidy_gmusic/library.py
+++ b/mopidy_gmusic/library.py
@@ -8,7 +8,6 @@ from mopidy_gmusic.translator import (
album_to_ref,
artist_to_ref,
create_id,
- get_images,
track_to_ref,
)
@@ -591,7 +590... | library: Album() no longer supports the images attribute It should be replaced by `library.get_images(uris)`. | py |
diff --git a/idx2numpy/test/converters_test.py b/idx2numpy/test/converters_test.py
index <HASH>..<HASH> 100644
--- a/idx2numpy/test/converters_test.py
+++ b/idx2numpy/test/converters_test.py
@@ -196,20 +196,6 @@ class TestConvertToString(TestCaseBase):
self.assertRaises(
idx2numpy.FormatError,
... | Removed test_very_large_ndarray, because it sometimes causes memory errors when it creates a 4GB numpy array. | py |
diff --git a/twitter_scraper/modules/tweets.py b/twitter_scraper/modules/tweets.py
index <HASH>..<HASH> 100644
--- a/twitter_scraper/modules/tweets.py
+++ b/twitter_scraper/modules/tweets.py
@@ -89,10 +89,16 @@ def get_tweets(query, pages=25):
hashtag_node.full_text
for hashtag... | add embedded for urls and delete duplicated urls | py |
diff --git a/notedown/notedown.py b/notedown/notedown.py
index <HASH>..<HASH> 100644
--- a/notedown/notedown.py
+++ b/notedown/notedown.py
@@ -367,7 +367,7 @@ class MarkdownWriter(NotebookWriter):
on a relative path and read from there after copying the
template to it.
"""
- tmp = temp... | Set tempfile mode to 'w+' Python 3 is unhappy copying text mode files into binary mode tempfile. This commit standardises all files to be open in text mode. | py |
diff --git a/indra/bel/processor.py b/indra/bel/processor.py
index <HASH>..<HASH> 100644
--- a/indra/bel/processor.py
+++ b/indra/bel/processor.py
@@ -573,6 +573,7 @@ class BelProcessor(object):
?stmt belvoc:hasSubject ?tf .
?stmt belvoc:hasObject ?target .
?subject a ... | Handle missing mod in BEL processor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,8 +7,6 @@ import subprocess
from setuptools import setup, find_packages
from setuptools.command.build_py import build_py
-from pyguetzli.version import VERSION
-
class CustomBuildPy(build_py):
@@ -26,7 +24,7 @@ eli... | setup.py: do not read version from package | py |
diff --git a/great_expectations/render/renderer/column_section_renderer.py b/great_expectations/render/renderer/column_section_renderer.py
index <HASH>..<HASH> 100644
--- a/great_expectations/render/renderer/column_section_renderer.py
+++ b/great_expectations/render/renderer/column_section_renderer.py
@@ -217,8 +217,18... | Use Q1, Median, Q3 conventions | py |
diff --git a/ella/comments/urls.py b/ella/comments/urls.py
index <HASH>..<HASH> 100644
--- a/ella/comments/urls.py
+++ b/ella/comments/urls.py
@@ -23,6 +23,10 @@ def comments_custom_urls(request, bits, context):
def register_custom_urls():
"""register all custom urls"""
+ # TODO: move this piece of code some... | locale actiovation for fastcgi server running - jv&hk collaboration git-svn-id: <URL> | py |
diff --git a/wafer/menu.py b/wafer/menu.py
index <HASH>..<HASH> 100644
--- a/wafer/menu.py
+++ b/wafer/menu.py
@@ -56,7 +56,7 @@ def maybe_obj(str_or_obj):
def generate_menu():
"""Generate a new list of menus."""
- root_menu = Menu(copy.deepcopy(settings.WAFER_MENUS))
+ root_menu = Menu(list(copy.deepcopy... | Allow WAFER_MENUS setting to be a tuple | py |
diff --git a/src/rez/utils/memcached.py b/src/rez/utils/memcached.py
index <HASH>..<HASH> 100644
--- a/src/rez/utils/memcached.py
+++ b/src/rez/utils/memcached.py
@@ -353,7 +353,10 @@ def memcached(servers, key=None, from_cache=None, to_cache=None, time=0,
return result
else:
... | fix so that, even if there are no memcached servers, DoNotCache results are properly unwrapped | py |
diff --git a/msm/mycroft_skills_manager.py b/msm/mycroft_skills_manager.py
index <HASH>..<HASH> 100644
--- a/msm/mycroft_skills_manager.py
+++ b/msm/mycroft_skills_manager.py
@@ -51,10 +51,16 @@ def save_skills_data(func):
will_save = False
if not self.saving_handled:
will_save = self.sav... | Make sure saving_handled is reset Saving handled flag will always be reset even if an exception occurs. Write will still only occur if the msm operation was successful. | py |
diff --git a/toh5.py b/toh5.py
index <HASH>..<HASH> 100644
--- a/toh5.py
+++ b/toh5.py
@@ -62,10 +62,10 @@ def convert_chain(
maxshape=(None,),
dtype=np.float64,
chunks=(chunksize,),
- c... | Change compression option to gzip (the standard). Updated attribute syntax to h5py <I>. lzf compression is better than gzip, but is h5py specific, which we really don't want. | py |
diff --git a/salt/modules/git.py b/salt/modules/git.py
index <HASH>..<HASH> 100644
--- a/salt/modules/git.py
+++ b/salt/modules/git.py
@@ -39,13 +39,21 @@ def _add_http_basic_auth(url, https_user=None, https_pass=None):
else:
urltuple = _urlparse(url)
if urltuple.scheme == 'https':
- n... | Fix git https auth for password of None | py |
diff --git a/src/satosa/satosa_config.py b/src/satosa/satosa_config.py
index <HASH>..<HASH> 100644
--- a/src/satosa/satosa_config.py
+++ b/src/satosa/satosa_config.py
@@ -50,7 +50,7 @@ class SATOSAConfig(object):
self._config["INTERNAL_ATTRIBUTES"] = _internal_attributes
break
... | Fix typo in exception in SATOSAConfig constructor. | py |
diff --git a/ca/django_ca/managers.py b/ca/django_ca/managers.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/managers.py
+++ b/ca/django_ca/managers.py
@@ -121,6 +121,9 @@ class CertificateAuthorityManager(CertificateManagerMixin, models.Manager):
builder = builder.subject_name(x509.Name(subject))
... | account for pathlen=False | py |
diff --git a/pymatgen/io/vasp/tests/test_outputs.py b/pymatgen/io/vasp/tests/test_outputs.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/tests/test_outputs.py
+++ b/pymatgen/io/vasp/tests/test_outputs.py
@@ -1215,6 +1215,11 @@ class ElfcarTest(PymatgenTest):
alpha = elfcar.get_alpha()
self.asse... | Add tests for interpolation to ElfcarTest | py |
diff --git a/validator/sawtooth_validator/server/core.py b/validator/sawtooth_validator/server/core.py
index <HASH>..<HASH> 100644
--- a/validator/sawtooth_validator/server/core.py
+++ b/validator/sawtooth_validator/server/core.py
@@ -165,10 +165,12 @@ class ValidatorService(object):
raise Exception("inter... | Add future to future collection before sending message The 'invalid message tp/response' error might have been happening because the Validator -> TP ->Validator happens before the future gets added to the FutureCollection, so when the _SendReceiveThread _receive_message looks for the correlation_id in the FutureCollec... | py |
diff --git a/pyramid_webassets/__init__.py b/pyramid_webassets/__init__.py
index <HASH>..<HASH> 100644
--- a/pyramid_webassets/__init__.py
+++ b/pyramid_webassets/__init__.py
@@ -12,14 +12,19 @@ from webassets.exceptions import BundleError
class PyramidResolver(Resolver):
+ def __init__(self, env):
+ s... | avoid recreating the AssetResolver over and over | 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
@@ -35,6 +35,8 @@ def assert_compare_nifti(nifti_file_1, nifti_file_2):
if nifti_1.get_data_dtype() != nifti_2.get_data_dtype():
raise Exception('dtype mismatch')
... | icometrix/dicom2nifti#<I>: See why test fails on circle ci (probably rounding differences higher that standard allowed) | py |
diff --git a/projects/poirazi_neuron_model/run_tm_dim_experiment.py b/projects/poirazi_neuron_model/run_tm_dim_experiment.py
index <HASH>..<HASH> 100644
--- a/projects/poirazi_neuron_model/run_tm_dim_experiment.py
+++ b/projects/poirazi_neuron_model/run_tm_dim_experiment.py
@@ -41,7 +41,7 @@ def convert_cell_lists_to_d... | PUB-<I> minor change to TM dimension experiment params | py |
diff --git a/skosify/config.py b/skosify/config.py
index <HASH>..<HASH> 100644
--- a/skosify/config.py
+++ b/skosify/config.py
@@ -5,6 +5,7 @@ import logging
import sys
import argparse
from rdflib import URIRef, Namespace, RDF, RDFS
+from rdflib.namespace import ClosedNamespace
# import for both Python 2 and Pyth... | added try catch for parsing URIRefs | py |
diff --git a/src/wa_kat/data_model.py b/src/wa_kat/data_model.py
index <HASH>..<HASH> 100755
--- a/src/wa_kat/data_model.py
+++ b/src/wa_kat/data_model.py
@@ -16,8 +16,6 @@ from collections import namedtuple
from kwargs_obj import KwargsObj
-import analyzers
-
# Functions & classes =============================... | Analyzers are now imported in .analyzers_mapping() to prevent conflicts. Python can't manage cyclic imports, this prevents them. #<I> | py |
diff --git a/ezibpy/ezibpy.py b/ezibpy/ezibpy.py
index <HASH>..<HASH> 100644
--- a/ezibpy/ezibpy.py
+++ b/ezibpy/ezibpy.py
@@ -1135,6 +1135,11 @@ class ezIBpy():
# -----------------------------------------
# trailing stops
# -----------------------------------------
+ def cancelTriggerableTrailingStop... | added cancelTriggerableTrailingStop(symbol) | py |
diff --git a/bottle_sqlalchemy.py b/bottle_sqlalchemy.py
index <HASH>..<HASH> 100644
--- a/bottle_sqlalchemy.py
+++ b/bottle_sqlalchemy.py
@@ -52,7 +52,7 @@ session.
'''
__author__ = "Iuri de Silvio"
-__version__ = '0.1'
+__version__ = '0.2'
__license__ = 'MIT'
### CUT HERE (see setup.py) | Version bump to <I>. First <I> version is already tagged. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ with open('CHANGELOG.rst') as changelog_file:
install_requires = [
'requests>=2.11.0',
- 'bigchaindb~=0.9.1',
+ 'bigchaindb~=0.10.1',
]
tests_require = [ | Upgrade bigchaindb (server) dependency | py |
diff --git a/pywb/rewrite/rewrite_amf.py b/pywb/rewrite/rewrite_amf.py
index <HASH>..<HASH> 100644
--- a/pywb/rewrite/rewrite_amf.py
+++ b/pywb/rewrite/rewrite_amf.py
@@ -22,7 +22,7 @@ class RewriteAMF(BufferedRewriter): #pragma: no cover
res = remoting.decode(iobuff)
# TODO: revisit this
-... | rewrite_amf.py: Fix bug introduced by recent refactoring (#<I>) | py |
diff --git a/DFA.py b/DFA.py
index <HASH>..<HASH> 100644
--- a/DFA.py
+++ b/DFA.py
@@ -1,6 +1,7 @@
import json
from itertools import product as cartesian_product
from copy import deepcopy
+import graphviz
# ###
@@ -68,6 +69,17 @@ def dfa_json_importer(input_file):
return dfa
+def dfa_render(dfa, name):... | first implementation of dfa_render through graphviz | py |
diff --git a/bigquery/client.py b/bigquery/client.py
index <HASH>..<HASH> 100644
--- a/bigquery/client.py
+++ b/bigquery/client.py
@@ -388,10 +388,10 @@ class BigQueryClient(object):
"sourceUris": source_uris,
}
- if max_bad_records:
+ if max_bad_records is not None:
c... | Fix truthy evaluation for boolean | py |
diff --git a/src/mapping/bedIterators.py b/src/mapping/bedIterators.py
index <HASH>..<HASH> 100755
--- a/src/mapping/bedIterators.py
+++ b/src/mapping/bedIterators.py
@@ -150,7 +150,7 @@ def BEDIterator(filehandle, sortedby=None, verbose=False, scoreType = int,
messagePrefix = "com... | adding additional exception (OSError) for printing status on BED iterators -- stops errors when trying to iterate over streams of BED data in verbose mode | py |
diff --git a/bika/lims/browser/analyses.py b/bika/lims/browser/analyses.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/analyses.py
+++ b/bika/lims/browser/analyses.py
@@ -179,12 +179,10 @@ class AnalysesView(BikaListingView):
items[i]['Partition'] = ''
if obj.portal_type == "Refere... | Fixed #<I> Date/Time captured for QC analyses on AR views not shown | py |
diff --git a/bin/write-htcondor-job-spec.py b/bin/write-htcondor-job-spec.py
index <HASH>..<HASH> 100755
--- a/bin/write-htcondor-job-spec.py
+++ b/bin/write-htcondor-job-spec.py
@@ -256,7 +256,7 @@ def printConcatScript(params):
with open('concat.sh', 'w') as outfp:
outfp.write("""\
#!/bin/sh
-ls *.json... | TRIVIAL: only examine [0-9]*.json files (instead of *.json) when concatenating result .json files from a condor job. This allows us to run concat.sh > all.json (for example). | py |
diff --git a/dock/plugin.py b/dock/plugin.py
index <HASH>..<HASH> 100644
--- a/dock/plugin.py
+++ b/dock/plugin.py
@@ -145,7 +145,7 @@ class PluginsRunner(object):
logger.debug("load file '%s'", f)
module_name = os.path.basename(f).rsplit('.', 1)[0]
try:
- f_module ... | proper dynamic import of plugins This should fix warnings like: ``` RuntimeWarning: Parent module 'atomicapp.providers' not found while handling absolute import... ``` The problem is the module name passed to `load_source`. We don't need to put absolute path there, because we are loading the plugin directly from sou... | py |
diff --git a/ceam/modules/disease_models.py b/ceam/modules/disease_models.py
index <HASH>..<HASH> 100644
--- a/ceam/modules/disease_models.py
+++ b/ceam/modules/disease_models.py
@@ -19,7 +19,7 @@ def heart_disease_factory():
weight = 0.43*(2/timestep) + 0.07*(28/timestep)
heart_attack = ExcessMortalityState(... | Cosmetic cleanup (tabs->spaces, delete trailing WS). | py |
diff --git a/ginga/canvas/types/astro.py b/ginga/canvas/types/astro.py
index <HASH>..<HASH> 100644
--- a/ginga/canvas/types/astro.py
+++ b/ginga/canvas/types/astro.py
@@ -308,9 +308,14 @@ class Compass(OnePointOneRadiusMixin, CanvasObjectBase):
self.cap_radius)
def draw(self, v... | Fixed a bug in canvas.types.astro.Compass When ginga.util.wcsmod.AstropyWCS.radectopix returns nan (caused by some kind of faulty FITS file), Compass.draw throws an error that causes the viewer at the top of the Info tab to stop working properly. I fixed it with a try/except. | py |
diff --git a/spyder/dependencies.py b/spyder/dependencies.py
index <HASH>..<HASH> 100644
--- a/spyder/dependencies.py
+++ b/spyder/dependencies.py
@@ -49,7 +49,7 @@ PANDAS_REQVER = '>=0.13.1'
NUMPY_REQVER = '>=1.7'
SCIPY_REQVER = '>=0.17.0'
PYLS_REQVER = '>=0.28.2;<0.29.0'
-APPLAUNCHSERVICES_REQVER = '>=0.1.6'
+... | Update minimum version number for applaunchservices | py |
diff --git a/openquake/server/views.py b/openquake/server/views.py
index <HASH>..<HASH> 100644
--- a/openquake/server/views.py
+++ b/openquake/server/views.py
@@ -403,11 +403,11 @@ def calc_results(request, calc_id):
response_data = []
for result in results:
- try:
+ try: # output from the ol... | Added a couple of comments Former-commit-id: <I>cd3ba<I>bad<I>efb<I>be<I>f<I>c | 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
@@ -53,6 +53,7 @@ def parse_deps(parent, text, transform):
for m in tr_re.finditer(text):
deps[(parent + '._context', 'language')] = None
+ break
def sub(m):
path = m.gro... | break after first tr_re found | py |
diff --git a/micawber/providers.py b/micawber/providers.py
index <HASH>..<HASH> 100644
--- a/micawber/providers.py
+++ b/micawber/providers.py
@@ -3,7 +3,6 @@ import pickle
import re
import socket
import urllib2
-import sys
from urllib import urlencode
try:
import simplejson as json
@@ -72,6 +71,7 @@ class Pr... | PEP code cleanups in providers.py | py |
diff --git a/amazon/api.py b/amazon/api.py
index <HASH>..<HASH> 100644
--- a/amazon/api.py
+++ b/amazon/api.py
@@ -781,10 +781,11 @@ class AmazonProduct(object):
result = []
reviews_node = self._safe_get_element('EditorialReviews')
- for review_node in reviews_node.iterchildren():
- ... | Add check for None and fix possible warning. | py |
diff --git a/pandas/tests/test_frame.py b/pandas/tests/test_frame.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/test_frame.py
+++ b/pandas/tests/test_frame.py
@@ -7678,7 +7678,7 @@ class TestDataFrame(unittest.TestCase, CheckIndexing,
def test_mask_edge_case_1xN_frame(self):
# GH4071
df = Dat... | TST: use DataFrame in the test | py |
diff --git a/src/azure_devtools/scenario_tests/preparers.py b/src/azure_devtools/scenario_tests/preparers.py
index <HASH>..<HASH> 100644
--- a/src/azure_devtools/scenario_tests/preparers.py
+++ b/src/azure_devtools/scenario_tests/preparers.py
@@ -105,7 +105,7 @@ class SingleValueReplacer(RecordingProcessor):
... | SingleValueReplacer.process_request properly decodes request.body if its type is byte. (#<I>) | py |
diff --git a/djoser/serializers.py b/djoser/serializers.py
index <HASH>..<HASH> 100644
--- a/djoser/serializers.py
+++ b/djoser/serializers.py
@@ -209,8 +209,7 @@ class SetUsernameSerializer(serializers.ModelSerializer, CurrentPasswordSerializ
"""
super(SetUsernameSerializer, self).__init__(*args, **k... | Simplified del to pop Didn't test, but should work because self.fields is a property function that returns a dictionary. | py |
diff --git a/redisco/containers.py b/redisco/containers.py
index <HASH>..<HASH> 100644
--- a/redisco/containers.py
+++ b/redisco/containers.py
@@ -166,9 +166,6 @@ class Set(Container):
self.db.sdiffstore(self.key, [self.key, other.key])
return self
- def __repr__(self):
- return u"<red... | Fixes pylint errors E:<I>:Set.__repr__: method already defined line <I> E:<I>:TypedList.typecast_iter: Undefined variable 'value' E:<I>:TypedList.__repr__: Instance of 'TypedList' has no 'members' member | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,20 @@
#!/usr/bin/env python
+import sys
"""Setup script for the 'uncompyle6' distribution."""
+SYS_VERSION = sys.version_info[0:2]
+if not ((2, 6) <= SYS_VERSION <= (3, 7)) or ((3, 0) <= SYS_VERSION <= (3, 2)):
... | Check Python version in setup.py ... to make sure we are running a compatible version. Fixes #<I> | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100755
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,2 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
\ No newline at end of file | Flake8 was complaining about a new line I couldn't see so I just removed everything in this file. | py |
diff --git a/keen/tests/client_tests.py b/keen/tests/client_tests.py
index <HASH>..<HASH> 100644
--- a/keen/tests/client_tests.py
+++ b/keen/tests/client_tests.py
@@ -501,7 +501,7 @@ class QueryTests(BaseTestCase):
limit = 2
order_by = {"property_name": "result", "direction": keen.direction.DESCENDING... | fixed <I> compat with order_by test | py |
diff --git a/salt/modules/smbios.py b/salt/modules/smbios.py
index <HASH>..<HASH> 100644
--- a/salt/modules/smbios.py
+++ b/salt/modules/smbios.py
@@ -86,6 +86,11 @@ def get(string, clean=True):
'''
val = _dmidecoder('-s {0}'.format(string)).strip()
+
+ # Sometimes dmidecode delivers comments in strings.... | Cleanup comments in smbios.get output (fixes #<I>) (#<I>) As also noted in <URL> | py |
diff --git a/smartcard/pcsc/PCSCPart10.py b/smartcard/pcsc/PCSCPart10.py
index <HASH>..<HASH> 100644
--- a/smartcard/pcsc/PCSCPart10.py
+++ b/smartcard/pcsc/PCSCPart10.py
@@ -202,6 +202,16 @@ def getTlvProperties(cardConnection, featureList=None, controlCode=None):
return {'raw': []}
response = cardConn... | PCSCPart<I>: add parseTlvProperties() Split getTlvProperties() code to add parseTlvProperties() so that it is possible to parse a buffer given in parameter. This can be used to parse data from a log trace so without asking to a connected reader. | py |
diff --git a/OpenPNM/Fluids/__GenericFluid__.py b/OpenPNM/Fluids/__GenericFluid__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Fluids/__GenericFluid__.py
+++ b/OpenPNM/Fluids/__GenericFluid__.py
@@ -40,7 +40,7 @@ class GenericFluid(OpenPNM.Utilities.Tools):
def __init__(self,network,name,**kwargs):
super... | Fixed 2 bugs in GenericFluid - type on _fluids - also added occupancy = 1 up on initialization Former-commit-id: <I>b<I>bddbeb<I>ef<I> Former-commit-id: f<I>bca<I>cab<I>a7f<I>f<I>c<I>bb<I>f1f<I>b<I> | py |
diff --git a/django_rq/management/commands/rqworker.py b/django_rq/management/commands/rqworker.py
index <HASH>..<HASH> 100644
--- a/django_rq/management/commands/rqworker.py
+++ b/django_rq/management/commands/rqworker.py
@@ -7,6 +7,8 @@ from redis.exceptions import ConnectionError
from django_rq.workers import get... | Call "use_connection" in "rqworker" management command to prevent jobs using "get_current_job" from failing. | py |
diff --git a/any_imagefield/forms/widgets.py b/any_imagefield/forms/widgets.py
index <HASH>..<HASH> 100644
--- a/any_imagefield/forms/widgets.py
+++ b/any_imagefield/forms/widgets.py
@@ -12,7 +12,11 @@ class ImagePreviewWidget(AdminFileWidget):
def render(self, name, value, attrs=None):
is_image = False
... | Make ImagePreviewWidget compatible with Image objects without path attribute. | py |
diff --git a/redcap/rc.py b/redcap/rc.py
index <HASH>..<HASH> 100644
--- a/redcap/rc.py
+++ b/redcap/rc.py
@@ -269,6 +269,12 @@ class RCProject(object):
The fields desired for matching subjects
"""
pass
+
+ def names_labels(self, do_print=False):
+ if do_print:
+ ... | names_labels allows user to get field_names and field_labels | py |
diff --git a/tests/unit/deploy/test_swagger.py b/tests/unit/deploy/test_swagger.py
index <HASH>..<HASH> 100644
--- a/tests/unit/deploy/test_swagger.py
+++ b/tests/unit/deploy/test_swagger.py
@@ -16,23 +16,7 @@ def test_can_add_binary_media_types(swagger_gen):
app = Chalice('test-binary')
doc = swagger_gen.gen... | Remove hardcoded list of binary types in test | py |
diff --git a/pyeda/boolalg/expr.py b/pyeda/boolalg/expr.py
index <HASH>..<HASH> 100644
--- a/pyeda/boolalg/expr.py
+++ b/pyeda/boolalg/expr.py
@@ -699,7 +699,7 @@ class Expression(boolfunc.Function):
def invert(self):
"""Return the inverse expression."""
- warnings.warn("Expression.invert is depr... | Fix bug caught by lint | py |
diff --git a/salt/utils/templates.py b/salt/utils/templates.py
index <HASH>..<HASH> 100644
--- a/salt/utils/templates.py
+++ b/salt/utils/templates.py
@@ -85,11 +85,12 @@ def render_jinja_tmpl(tmplstr, context, tmplpath=None):
loader = jinja2.FileSystemLoader(context, os.path.dirname(tmplpath))
else:
... | Enable with-tag extension in Jinja2 render. Closes #<I>. | py |
diff --git a/openquake/commands/shell.py b/openquake/commands/shell.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/shell.py
+++ b/openquake/commands/shell.py
@@ -25,11 +25,12 @@ class OQ(object):
"""
def __init__(self):
from openquake.baselib.datastore import read
- from openquake.com... | Added an utility oq.make_hmap [skip CI] Former-commit-id: cbdb<I>cb<I>a1a<I>e<I>b<I>bf<I>c<I>e9ac<I>e3 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,6 @@ from setuptools import setup
if sys.argv[-1] == 'publish':
- os.system('python setup.py sdist upload --sign')
os.system('python setup.py bdist_wheel upload --sign')
sys.exit() | Do not create a sdist on publish | py |
diff --git a/paramiko/transport.py b/paramiko/transport.py
index <HASH>..<HASH> 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -1901,10 +1901,10 @@ class Transport (threading.Thread, ClosingContextManager):
self.remote_version = buf
self._log(DEBUG, 'Remote version/idstring: %s' % b... | Address an unused variable bit. Had to spelunk to make sure this wasn't a recent brokenness | py |
diff --git a/phoopy/kernel/kernel.py b/phoopy/kernel/kernel.py
index <HASH>..<HASH> 100644
--- a/phoopy/kernel/kernel.py
+++ b/phoopy/kernel/kernel.py
@@ -102,6 +102,9 @@ class Kernel(object):
}
def __transform_magic_string(self, value, c):
+ if not isinstance(value, str):
+ return val... | fixing when the value is not string in transform_magic_string | py |
diff --git a/tests/python_package_test/test_dask.py b/tests/python_package_test/test_dask.py
index <HASH>..<HASH> 100644
--- a/tests/python_package_test/test_dask.py
+++ b/tests/python_package_test/test_dask.py
@@ -8,8 +8,10 @@ from itertools import groupby
from os import getenv
from sys import platform
-import lig... | [ci][python] apply isort to tests/python_package_test/test_dask.py #<I> (#<I>) | py |
diff --git a/mdc_api/mdc_api.py b/mdc_api/mdc_api.py
index <HASH>..<HASH> 100755
--- a/mdc_api/mdc_api.py
+++ b/mdc_api/mdc_api.py
@@ -716,8 +716,9 @@ class connector:
result.callback(result)
else:
self.log.warn("No callback function given")
- #else:
+ else:
# TODO : object not f... | updated logger and added warning about erronious async messages | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -370,8 +370,8 @@ VALID_OPTS = {
# Events matching a tag in this list should never be sent to an event returner.
'event_return_blacklist': list,
- # The file cache for the win_pkg module
-... | new minions just need a source dir for the winrepo | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ def parse_requirements(filename='requirements.txt'):
setup(
name='pocoui',
- version='1.0.80',
+ version='1.0.81',
keywords="poco, automation test, ui automation",
description='Poco cross... | level up to <I> (cherry picked from commit e5c<I>d3e<I>d2cb<I>cb<I>bda<I>f<I>) | py |
diff --git a/src/flapjack/encoders.py b/src/flapjack/encoders.py
index <HASH>..<HASH> 100644
--- a/src/flapjack/encoders.py
+++ b/src/flapjack/encoders.py
@@ -63,7 +63,11 @@ class Bin(transcoders.Bin, Encoder):
@classmethod
def encode(cls, obj=None):
- return super(Bin, cls).encode(obj.read())
+ ... | Binary file downloads -- they're protected. | py |
diff --git a/src/pymoca/parser.py b/src/pymoca/parser.py
index <HASH>..<HASH> 100644
--- a/src/pymoca/parser.py
+++ b/src/pymoca/parser.py
@@ -411,7 +411,9 @@ class ASTListener(ModelicaListener):
self.ast[ctx] = ast.Primary(value=float(ctx.getText()))
def exitPrimary_string(self, ctx: ModelicaParser.Pri... | Fix parsing of string primary According to the grammar, strings (e.g. in modifiers) always use double quotes. The value is then what is _between_ the quotes. | py |
diff --git a/arch/zx48k/translator.py b/arch/zx48k/translator.py
index <HASH>..<HASH> 100644
--- a/arch/zx48k/translator.py
+++ b/arch/zx48k/translator.py
@@ -768,8 +768,8 @@ class Translator(TranslatorVisitor):
def visit_PRINT_TAB(self, node):
yield node.children[0]
- self.emit('fparamu8', node.... | Refactorize PRINT_TAB visit | py |
diff --git a/test_elasticsearch/test_server/test_common.py b/test_elasticsearch/test_server/test_common.py
index <HASH>..<HASH> 100644
--- a/test_elasticsearch/test_server/test_common.py
+++ b/test_elasticsearch/test_server/test_common.py
@@ -3,6 +3,7 @@ Dynamically generated set of TestCases based on set of yaml files... | Handle regexp-based catch statements in the yaml test suite | py |
diff --git a/autograd/numpy/linalg.py b/autograd/numpy/linalg.py
index <HASH>..<HASH> 100644
--- a/autograd/numpy/linalg.py
+++ b/autograd/numpy/linalg.py
@@ -79,7 +79,8 @@ eigh.defgrad(make_grad_eigh)
def make_grad_cholesky(L, A):
# scipy's dtrtrs wrapper is slow and doesn't broadcast along leading
- # dime... | tweak comment in cholesky grad | py |
diff --git a/ryu/ofproto/ofproto_parser.py b/ryu/ofproto/ofproto_parser.py
index <HASH>..<HASH> 100644
--- a/ryu/ofproto/ofproto_parser.py
+++ b/ryu/ofproto/ofproto_parser.py
@@ -111,7 +111,7 @@ def ofp_msg_from_jsondict(dp, jsondict):
class StringifyMixin(stringify.StringifyMixin):
- _class_prefixes = ["OFP", ... | Be able to parse classes that start with "NX" | py |
diff --git a/skorch/callbacks.py b/skorch/callbacks.py
index <HASH>..<HASH> 100644
--- a/skorch/callbacks.py
+++ b/skorch/callbacks.py
@@ -535,6 +535,9 @@ class ProgressBar(Callback):
remaining time and user-defined metrics.
For jupyter notebooks a non-ASCII progress bar is printed instead.
+ To use this... | Info about progress bar in jupyter notebook | py |
diff --git a/unitypack/__init__.py b/unitypack/__init__.py
index <HASH>..<HASH> 100644
--- a/unitypack/__init__.py
+++ b/unitypack/__init__.py
@@ -1,5 +1,6 @@
import os
import json
+import logging
from binascii import hexlify
from io import BytesIO
from urllib.parse import urlparse
@@ -229,7 +230,11 @@ class Objec... | Avoid crashing when getting a StreamedResource without a bundle | py |
diff --git a/examples/consumer.py b/examples/consumer.py
index <HASH>..<HASH> 100644
--- a/examples/consumer.py
+++ b/examples/consumer.py
@@ -40,8 +40,8 @@ from openid.consumer import consumer
from openid.oidutil import appendArgs
from openid.cryptutil import randomString
from openid.yadis.discover import Discovery... | [project @ Fix import in example consumer so that it imports with Python <<I>] | py |
diff --git a/lib/autokey/configmanager/version_upgrading.py b/lib/autokey/configmanager/version_upgrading.py
index <HASH>..<HASH> 100644
--- a/lib/autokey/configmanager/version_upgrading.py
+++ b/lib/autokey/configmanager/version_upgrading.py
@@ -20,23 +20,16 @@ This module handles upgrading user data, if required.
Th... | Extended the documentation. Added a README in the user scripts directory | py |
diff --git a/cme/protocols/smb/smbexec.py b/cme/protocols/smb/smbexec.py
index <HASH>..<HASH> 100755
--- a/cme/protocols/smb/smbexec.py
+++ b/cme/protocols/smb/smbexec.py
@@ -90,12 +90,15 @@ class SMBEXEC:
logging.debug('Command to execute: ' + command)
resp = scmr.hRCreateServiceW(self.__scmr, self... | Debug message for service creation/modification | py |
diff --git a/suds/client.py b/suds/client.py
index <HASH>..<HASH> 100644
--- a/suds/client.py
+++ b/suds/client.py
@@ -104,7 +104,6 @@ class Client(object):
options = Options()
options.transport = HttpAuthenticated()
self.options = options
- self.options.location = url
options... | fix issue regarding using wrong location this fix this error AttributeError: 'NoneType' object has no attribute 'promotePrefixes' | py |
diff --git a/src/Exscript/util/start.py b/src/Exscript/util/start.py
index <HASH>..<HASH> 100644
--- a/src/Exscript/util/start.py
+++ b/src/Exscript/util/start.py
@@ -12,6 +12,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foun... | Fix: Forgotten import statement caused util.run to fail. | py |
diff --git a/tests/jupyter/async_test.py b/tests/jupyter/async_test.py
index <HASH>..<HASH> 100644
--- a/tests/jupyter/async_test.py
+++ b/tests/jupyter/async_test.py
@@ -208,6 +208,9 @@ def test_debounced_await(df_trimmed, as_coroutine, as_method, flush_guard,):
bla2 = other_foo.foo()
result1 = a... | test: fix async test, was missing await | py |
diff --git a/latexmk.py b/latexmk.py
index <HASH>..<HASH> 100644
--- a/latexmk.py
+++ b/latexmk.py
@@ -286,7 +286,7 @@ def main():
a new instance of L{LatexMaker}.
'''
version = '%%prog %s' % __version__
- usage = 'Usage: python %prog [options] filename'
+ usage = 'Usage: %prog [options] filena... | Updated usage string (script should run directly and not with python executable) | py |
diff --git a/zounds/soundfile/byte_depth.py b/zounds/soundfile/byte_depth.py
index <HASH>..<HASH> 100644
--- a/zounds/soundfile/byte_depth.py
+++ b/zounds/soundfile/byte_depth.py
@@ -29,5 +29,5 @@ def chunk_size_samples(sf, buf):
channels = sf.channels
bytes_per_second = byte_depth * sf.samplerate * channels
... | Do these tests pass or fail based on the machine they're running on? | py |
diff --git a/pyxmpp/resolver.py b/pyxmpp/resolver.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/resolver.py
+++ b/pyxmpp/resolver.py
@@ -7,6 +7,7 @@ import sys
import binascii
import time
import string
+import re
from types import StringType,UnicodeType,IntType
import dns
@@ -18,6 +19,8 @@ cache={}
service_alia... | - support for literal IP (including broken SRV records, by the way) | py |
diff --git a/rootpy/plotting/canvas.py b/rootpy/plotting/canvas.py
index <HASH>..<HASH> 100644
--- a/rootpy/plotting/canvas.py
+++ b/rootpy/plotting/canvas.py
@@ -9,6 +9,7 @@ import ROOT
from .core import convert_color
from ..core import NamedObject
+from ..decorators import snake_case_methods
from .. import QROOT... | Add snake_case_methods to Canvas and Pad | py |
diff --git a/afsapi/__init__.py b/afsapi/__init__.py
index <HASH>..<HASH> 100644
--- a/afsapi/__init__.py
+++ b/afsapi/__init__.py
@@ -162,7 +162,7 @@ class AFSAPI():
if doc is None:
return None
- return int(doc.value.u8.text) or None
+ return int(doc.value.u8.text)
# return... | Fixed handle_int and handle_long When the API returned zero these functions would return None, this caused it to fail to look-up the current mode in the mode list if the mode was 0 (as it was looking for None rather than 0). It may have caused other issues too. | py |
diff --git a/ci/constants.py b/ci/constants.py
index <HASH>..<HASH> 100644
--- a/ci/constants.py
+++ b/ci/constants.py
@@ -24,7 +24,6 @@ BROKEN_RECIPES_PYTHON2 = set([
'groestlcoin_hash',
'hostpython3crystax',
# https://github.com/kivy/python-for-android/issues/1354
- 'kivent_core', 'kivent_cymunk', '... | Deleted kivent recipes from constants.py | py |
diff --git a/tests/geo/point_test.py b/tests/geo/point_test.py
index <HASH>..<HASH> 100644
--- a/tests/geo/point_test.py
+++ b/tests/geo/point_test.py
@@ -14,10 +14,9 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
... | tests/geo/point: covered from_vector() | py |
diff --git a/esda/__init__.py b/esda/__init__.py
index <HASH>..<HASH> 100644
--- a/esda/__init__.py
+++ b/esda/__init__.py
@@ -12,9 +12,9 @@ from .geary_local_mv import Geary_Local_MV
from .getisord import G, G_Local
from .join_counts import Join_Counts
from .join_counts_local import Join_Counts_Local
-from .join_co... | fix spatial pearson local import as well | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,6 +56,7 @@ setup(
tests_require = [
'pytest',
'tox',
+ 'check-manifest',
],
cmdclass = { | add check-manifest to test requirements | py |
diff --git a/searx/engines/flickr_noapi.py b/searx/engines/flickr_noapi.py
index <HASH>..<HASH> 100644
--- a/searx/engines/flickr_noapi.py
+++ b/searx/engines/flickr_noapi.py
@@ -117,14 +117,10 @@ def response(resp):
'img_format': img_format,
'template': 'images.html'
}
- try:
... | [fix] resolve flickr_noapi encoding issues | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -39,6 +39,9 @@ extensions = [
'sphinx.ext.napoleon'
]
+# Don't show source files on docs
+html_show_sourcelink = False
+
# Order by source, not alphabetically
autodoc_membe... | Don't show source files on live docs | py |
diff --git a/ncpol2sdpa/sdp_relaxation.py b/ncpol2sdpa/sdp_relaxation.py
index <HASH>..<HASH> 100644
--- a/ncpol2sdpa/sdp_relaxation.py
+++ b/ncpol2sdpa/sdp_relaxation.py
@@ -284,7 +284,7 @@ class SdpRelaxation(object):
def get_relaxation(self, obj, inequalities, equalities,
monomial_subs... | Removal of equalities does not happen by default | py |
diff --git a/src/cosmic_ray/cli.py b/src/cosmic_ray/cli.py
index <HASH>..<HASH> 100644
--- a/src/cosmic_ray/cli.py
+++ b/src/cosmic_ray/cli.py
@@ -270,18 +270,6 @@ def handle_execution_engines(args):
@dsc.command()
-def handle_interceptors(args):
- """usage: {program} interceptors
-
- List the available inte... | Removed "interceptors" command. | py |
diff --git a/condoor/protocols/telnet.py b/condoor/protocols/telnet.py
index <HASH>..<HASH> 100644
--- a/condoor/protocols/telnet.py
+++ b/condoor/protocols/telnet.py
@@ -67,8 +67,9 @@ class Telnet(Protocol):
]
logger.debug("EXPECTED_PROMPT={}".format(pattern_to_str(self.device.prompt_re)))
+ ... | TELNET FSM max transitions increased to <I> to handle fancy prompts | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.